Merge pull request #5749 from Security-Onion-Solutions/kilo

Use safe_load to avoid warnings - credit to @clairmont32
This commit is contained in:
Mike Reeves
2021-10-04 08:55:53 -04:00
committed by GitHub

View File

@@ -71,7 +71,7 @@ def checkApplyOption(options):
def loadYaml(filename):
file = open(filename, "r")
return yaml.load(file.read())
return yaml.safe_load(file.read())
def writeYaml(filename, content):
file = open(filename, "w")