diff --git a/backend/backend.py b/backend/backend.py index 91287c8..be328e4 100755 --- a/backend/backend.py +++ b/backend/backend.py @@ -71,7 +71,7 @@ def convert(): rule = str(base64.b64decode(request.json["rule"]), "utf-8") # check if input is valid yaml try: - yaml.safe_load(rule) + yaml.safe_load_all(rule) except: return Response( f"YamlError: Malformed yaml file", status=400, mimetype="text/html"