From d1dfd8b598a2852cc6400d323b29c405816f36a6 Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Tue, 18 Apr 2023 18:25:13 +0200 Subject: [PATCH] Set autoescape to True in Jinja2 environment Change-Id: I2af8d9e30f610bb18928b4c85b16ecd6754129b8 Signed-off-by: garciadeblas --- osm_pla/placement/mznplacement.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.25.1