Skip to content

Commit 18d9b1b

Browse files
Enable Jinja2 Autoescape (#7)
Co-authored-by: pixeebot[bot] <104101892+pixeebot[bot]@users.noreply.github.com>
1 parent 6bc366d commit 18d9b1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dispatch/messaging/email/filters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
here = os.path.dirname(os.path.realpath(__file__))
1313

1414
autoescape = bool(config.DISPATCH_ESCAPE_HTML)
15-
env = Environment(loader=FileSystemLoader(here), autoescape=autoescape)
15+
env = Environment(loader=FileSystemLoader(here), autoescape=True)
1616

1717

1818
def format_datetime(value):

0 commit comments

Comments
 (0)