From 3801a83831bc552d29b8cf4c1602fe5af516dde6 Mon Sep 17 00:00:00 2001 From: "pixeebot[bot]" <104101892+pixeebot[bot]@users.noreply.github.com> Date: Tue, 9 Jul 2024 04:42:08 +0000 Subject: [PATCH] Enable Jinja2 Autoescape --- src/dispatch/messaging/email/filters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dispatch/messaging/email/filters.py b/src/dispatch/messaging/email/filters.py index fa92b75782a2..5bf39889e32f 100644 --- a/src/dispatch/messaging/email/filters.py +++ b/src/dispatch/messaging/email/filters.py @@ -12,7 +12,7 @@ here = os.path.dirname(os.path.realpath(__file__)) autoescape = bool(config.DISPATCH_ESCAPE_HTML) -env = Environment(loader=FileSystemLoader(here), autoescape=autoescape) +env = Environment(loader=FileSystemLoader(here), autoescape=True) def format_datetime(value):