From: garciadeblas Date: Tue, 18 Apr 2023 16:25:13 +0000 (+0200) Subject: Set autoescape to True in Jinja2 environment X-Git-Tag: release-v14.0-start~1 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F23%2F13223%2F1;p=osm%2FPLA.git Set autoescape to True in Jinja2 environment Change-Id: I2af8d9e30f610bb18928b4c85b16ecd6754129b8 Signed-off-by: garciadeblas --- diff --git a/osm_pla/placement/mznplacement.py b/osm_pla/placement/mznplacement.py index d507bbd..ac25448 100755 --- a/osm_pla/placement/mznplacement.py +++ b/osm_pla/placement/mznplacement.py @@ -131,7 +131,7 @@ class MznModelGenerator(object): """loads the jinja template used for model generation""" loader1 = FileSystemLoader(MznModelGenerator.template_search_path) loader2 = PackageLoader("osm_pla", ".") - env = Environment(loader=ChoiceLoader([loader1, loader2])) + env = Environment(loader=ChoiceLoader([loader1, loader2]), autoescape=True) return env.get_template(template_name)