From bb6002a3ff48432915d96e97351e092b78a3c149 Mon Sep 17 00:00:00 2001 From: chrisr3d Date: Tue, 7 Aug 2018 18:14:29 +0200 Subject: [PATCH] fix: [cleanup] Quick clean up on yaml load function --- misp_modules/modules/expansion/sigma_syntax_validator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misp_modules/modules/expansion/sigma_syntax_validator.py b/misp_modules/modules/expansion/sigma_syntax_validator.py index 0d5226ff..64526544 100644 --- a/misp_modules/modules/expansion/sigma_syntax_validator.py +++ b/misp_modules/modules/expansion/sigma_syntax_validator.py @@ -21,7 +21,7 @@ def handler(q=False): return misperrors config = SigmaConfiguration() try: - parser = SigmaParser(yaml.load(request.get('sigma')), config) + parser = SigmaParser(yaml.safe_load(request.get('sigma')), config) result = ("Syntax valid: {}".format(parser.values)) except Exception as e: result = ("Syntax error: {}".format(str(e)))