Restricted the YAML support to safe features.
I think it doesn't change anything important, but looks sensitive.
This commit is contained in:
parent
734d2b9c35
commit
20d79d58ad
|
|
@ -243,7 +243,7 @@ class CfgYamlReader(object):
|
|||
:param fstream: file stream of a config YAML file
|
||||
"""
|
||||
try:
|
||||
data = yaml.load(fstream)
|
||||
data = yaml.safe_load(fstream)
|
||||
except yaml.YAMLError as e:
|
||||
config_error("Error loading YAML "+str(e))
|
||||
# List of outputs
|
||||
|
|
|
|||
Loading…
Reference in New Issue