Skip to content

Commit 7d61ff7

Browse files
terrikopdxjohnny
authored andcommitted
Revert "Enable jinja2 autoescape (#967)"
This reverts commit d8566c1.
1 parent 8bd70c0 commit 7d61ff7

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

cve_bin_tool/output_engine/html.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,7 @@ def output_html(
6464

6565
# Template Directory contains all the html files
6666
templates_dir = os.path.join(root, "html_reports")
67-
templates_env = Environment(
68-
loader=FileSystemLoader([theme_dir, templates_dir]),
69-
autoescape=select_autoescape(["html"]),
70-
)
67+
templates_env = Environment(loader=FileSystemLoader([theme_dir, templates_dir]))
7168

7269
temp_base = "templates/base.html"
7370
temp_dash = "templates/dashboard.html"

cve_bin_tool/output_engine/print_mode.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@ def html_print_mode(
1717

1818
root = os.path.dirname(os.path.abspath(__file__))
1919
templates_dir = os.path.join(root, "print_mode")
20-
templates_env = Environment(
21-
loader=FileSystemLoader(templates_dir),
22-
autoescape=select_autoescape(["html"]),
23-
)
20+
templates_env = Environment(loader=FileSystemLoader(templates_dir))
2421

2522
temp_showcase = "templates/showcase.html"
2623
temp_content = "templates/content.html"

0 commit comments

Comments
 (0)