Restricted the YAML support to safe features.

I think it doesn't change anything important, but looks sensitive.
This commit is contained in:
Salvador E. Tropea 2020-06-21 11:58:35 -03:00
parent 734d2b9c35
commit 20d79d58ad
1 changed files with 1 additions and 1 deletions

View File

@ -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