fix CVE-2017-2809 - code injection interpreted by yaml loader (#16)

This commit is contained in:
Hervé Beraud
2018-06-30 17:47:08 +02:00
committed by zewelor
parent e3f6ddb202
commit 8d0e4f5a0e
+1 -1
View File
@@ -1,4 +1,4 @@
import yaml
with open("config.yaml", "r") as f:
settings = yaml.load(f)
settings = yaml.safe_load(f)