config: use yaml.safe_load instead of load
This change replaces an insecure yaml.load procedure by yaml.safe_load. Change-Id: Ie14935f604f23b0928eed0dd8e28dff49699a2d1
This commit is contained in:
parent
4b29a89d57
commit
51074f5e66
|
@ -225,7 +225,7 @@ def openConfig(path):
|
|||
# attempt to reload it.
|
||||
while True:
|
||||
try:
|
||||
config = yaml.load(open(path))
|
||||
config = yaml.safe_load(open(path))
|
||||
break
|
||||
except IOError as e:
|
||||
if e.errno == 2:
|
||||
|
|
Loading…
Reference in New Issue