Skip to content

Commit e5f3eac

Browse files
migrate-from-ppy.py: jinja2 autoescape
"By default, jinja2 sets autoescape to False. Consider using autoescape=True or use the select_autoescape function to mitigate XSS vulnerabilities."
1 parent b12c9e9 commit e5f3eac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hack/migrate-from-ppy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def migrateItem(self, filename):
2929

3030
def render(self, tree):
3131
property_template = jinja2.Environment(
32-
loader=jinja2.FileSystemLoader(
32+
autoescape=True, loader=jinja2.FileSystemLoader(
3333
property_template_dir), trim_blocks='true')\
3434
.get_template(property_template_file_name)
3535
subcategory = ''

0 commit comments

Comments
 (0)