]> git.ozlabs.org Git - patchwork/commitdiff
notifications: do not HTML-escape patch change notifications
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Sun, 15 Jan 2012 09:49:24 +0000 (09:49 +0000)
committerJeremy Kerr <jk@ozlabs.org>
Tue, 1 May 2012 07:46:31 +0000 (15:46 +0800)
Patch change notifications are text/plain emails and should not
HTML-escape patch names.  This means quotes and ampersands in patch
names should not be turned into &quot; and &amp; HTML entities.

Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
templates/patchwork/patch-change-notification.mail

index d86a6af6aed8181a540736ef06c42bd91c38efc1..19a2a09a16926009b25525fcf0c92a88507e60b2 100644 (file)
@@ -2,7 +2,7 @@ Hello,
 
 The following patch{{notifications|length|pluralize:"es"}} (submitted by you) {{notifications|length|pluralize:"has,have"}} been updated in patchwork:
 {% for notification in notifications %}
- * {{notification.patch.name}}
+ * {{notification.patch.name|safe}}
      - http://{{site.domain}}{{notification.patch.get_absolute_url}}
     was: {{notification.orig_state}}
     now: {{notification.patch.state}}