From 18d9b1b19dc6c474351ab99e09f53b205e880014 Mon Sep 17 00:00:00 2001 From: "pixeebot[bot]" <104101892+pixeebot[bot]@users.noreply.github.com> Date: Fri, 19 Jul 2024 08:58:21 -0400 Subject: [PATCH] Enable Jinja2 Autoescape (#7) Co-authored-by: pixeebot[bot] <104101892+pixeebot[bot]@users.noreply.github.com> --- 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):