Browse Source

Mark thread title as safe before displaying it in email (#1024)

Rafał Pitoń 7 years ago
parent
commit
c9b7d4d77c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      misago/templates/misago/emails/privatethread/added.html

+ 2 - 2
misago/templates/misago/emails/privatethread/added.html

@@ -4,9 +4,9 @@
 
 
 {% block content %}
 {% block content %}
 {% capture trimmed as thread_title %}
 {% capture trimmed as thread_title %}
-<strong>{{ thread.title }}</strong>
+<b>{{ thread.title }}</b>
 {% endcapture %}
 {% endcapture %}
-{% blocktrans trimmed with user=recipient.username sender=sender.username thread=thread_title %}
+{% blocktrans trimmed with user=recipient.username sender=sender.username thread=thread_title|safe %}
 {{ user }}, you are receiving this message because {{ sender }} has invited you to participate in private thread {{ thread }}.
 {{ user }}, you are receiving this message because {{ sender }} has invited you to participate in private thread {{ thread }}.
 {% endblocktrans %}
 {% endblocktrans %}
 <br>
 <br>