From 9b5122b705b8b13c0d79a1459f2f607fa9c8873d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Tue, 27 Nov 2018 17:40:21 +0100 Subject: [PATCH] templates: do not escape characters in text/plain emails (#28383) --- .../authentic2/api_user_create_registration_email_body.txt | 4 ++-- templates/authentic2/change_email_notification_body.txt | 4 ++-- templates/authentic2/password_change_body.txt | 4 ++-- templates/authentic2/password_reset_email_body.txt | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/templates/authentic2/api_user_create_registration_email_body.txt b/templates/authentic2/api_user_create_registration_email_body.txt index db41d8b3..b300be41 100644 --- a/templates/authentic2/api_user_create_registration_email_body.txt +++ b/templates/authentic2/api_user_create_registration_email_body.txt @@ -1,5 +1,5 @@ {% extends "emails/body_base.txt" %} -{% block content %}Bonjour, +{% block content %}{% autoescape off %}Bonjour, À votre demande, un compte vient de vous être créé : @@ -18,4 +18,4 @@ Attention, cette action n'est valide que durant 24 heures. {% else %} Attention, cette action n'est valide que durant {{ expiration_days }} jours. {% endif %} -{% endblock %} +{% endautoescape %}{% endblock %} diff --git a/templates/authentic2/change_email_notification_body.txt b/templates/authentic2/change_email_notification_body.txt index badbf9fa..aee04ec0 100644 --- a/templates/authentic2/change_email_notification_body.txt +++ b/templates/authentic2/change_email_notification_body.txt @@ -1,5 +1,5 @@ {% extends "emails/body_base.txt" %} -{% block content %}Bonjour, +{% block content %}{% autoescape off %}Bonjour, Vous avez demandé à changer l'adresse électronique de votre compte de {{ old_email }} à {{ email }}. @@ -8,4 +8,4 @@ Pour valider ce changement, veuillez cliquer sur le lien suivant : {{ link }} -{% endblock %} +{% endautoescape %}{% endblock %} diff --git a/templates/authentic2/password_change_body.txt b/templates/authentic2/password_change_body.txt index 71380b57..5c81ed84 100644 --- a/templates/authentic2/password_change_body.txt +++ b/templates/authentic2/password_change_body.txt @@ -1,5 +1,5 @@ {% extends "emails/body_base.txt" %} -{% block content %}Bonjour, +{% block content %}{% autoescape off %}Bonjour, Vous avez changé le mot de passe de votre compte. @@ -7,4 +7,4 @@ Vous avez changé le mot de passe de votre compte. Si vous n'aviez pas demandé le changement de votre mot de passe, vous pouvez contacter l'équipe « {% firstof global_title site_name site "Compte Citoyen" %} ». {% endblock %} -{% endblock %} +{% endautoescape %}{% endblock %} diff --git a/templates/authentic2/password_reset_email_body.txt b/templates/authentic2/password_reset_email_body.txt index 1adb08ba..b4f52517 100644 --- a/templates/authentic2/password_reset_email_body.txt +++ b/templates/authentic2/password_reset_email_body.txt @@ -1,5 +1,5 @@ {% extends "emails/body_base.txt" %} -{% block content %}Bonjour, +{% block content %}{% autoescape off %}Bonjour, Vous avez oublié votre mot de passe ? @@ -18,4 +18,4 @@ Attention, sans validation de votre part dans les {{expiration_days}} jours, votre demande sera annulée. {% endif %} -{% endblock %} +{% endautoescape %}{% endblock %} -- 2.20.0.rc1