From e9708ca6e0aac9c7e97d45697d55c0bc973b3a9d Mon Sep 17 00:00:00 2001 From: Adeel Khan Date: Tue, 29 Oct 2019 14:28:39 +0500 Subject: [PATCH] Fixing templates for double escaping. Some of the email templates are escaped in such a way that could potentially cause double escaping i.e via django default behaviour and other via interpolate_html tag. Fixing it by only applying escape via tag. PROD-810 --- .../schedules/edx_ace/courseupdate/email/body.html | 6 +++--- .../edx_ace/recurringnudge_day10/email/body.html | 4 ++-- .../schedules/edx_ace/recurringnudge_day3/email/body.html | 8 ++++---- .../schedules/edx_ace/upgradereminder/email/body.html | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/openedx/core/djangoapps/schedules/templates/schedules/edx_ace/courseupdate/email/body.html b/openedx/core/djangoapps/schedules/templates/schedules/edx_ace/courseupdate/email/body.html index c17360558e..545a165ba7 100644 --- a/openedx/core/djangoapps/schedules/templates/schedules/edx_ace/courseupdate/email/body.html +++ b/openedx/core/djangoapps/schedules/templates/schedules/edx_ace/courseupdate/email/body.html @@ -16,10 +16,10 @@

{% blocktrans trimmed asvar tmsg %} - We hope you're enjoying {start_strong}{{ course_name }}{end_strong}! - We want to let you know what you can look forward to in week {{ week_num }}: + We hope you're enjoying {start_strong}{course_name}{end_strong}! + We want to let you know what you can look forward to in week {week_num}: {% endblocktrans %} - {% interpolate_html tmsg start_strong=''|safe end_strong=''|safe %} + {% interpolate_html tmsg start_strong=''|safe end_strong=''|safe course_name=course_name|force_escape|safe week_num=week_num|force_escape|safe %}