CLIP-1583: Audited url open for permitted schemes and set autoscape to True to mitigate XSS vulnerabilities.

This commit is contained in:
nghazalibeiklar
2022-06-23 10:42:33 +10:00
parent 9dfdfb2dd1
commit 8349408cf8
4 changed files with 37 additions and 27 deletions

View File

@@ -16,6 +16,7 @@ def find_all_scenarios():
def load_template():
jenv = j2.Environment(
loader=j2.FileSystemLoader('.'),
autoescape=True,
lstrip_blocks=True,
trim_blocks=True)
return jenv.get_template(PIPELINE_TEMPLATE_J2_FILE)