Use autoescape=True to mitigate XSS vulnerabilities

Fixes https://github.com/redhat-chaos/krkn/issues/354
This commit is contained in:
Naga Ravi Chaitanya Elluri
2022-11-08 14:34:06 -05:00
parent b9d5a7af4d
commit 6ccc16a0ab
+1 -1
View File
@@ -34,7 +34,7 @@ def run(scenarios_list, config, wait_duration):
for single_node_name in node_name_list:
nodelst.extend(common_node_functions.get_node(single_node_name, test_node_label, test_instance_count))
file_loader = FileSystemLoader(os.path.abspath(os.path.dirname(__file__)))
env = Environment(loader=file_loader)
env = Environment(loader=file_loader, autoescape=True)
pod_template = env.get_template("pod.j2")
test_interface = verify_interface(test_interface, nodelst, pod_template)
joblst = []