mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
Merge pull request #5749 from Security-Onion-Solutions/kilo
Use safe_load to avoid warnings - credit to @clairmont32
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user