From 2af63c66c9ea09df6c6eab285618c75372eff1ff Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Wed, 1 Jun 2016 12:50:39 +0200 Subject: [PATCH] Properly escape messageid in URLs Failing to do this caused invalid URLs for about 100 messages in total, generating http 400 errors, but it may also have caused some URLs to generate 404's when they shouldn't have. --- django/archives/mailarchives/templates/datelist.html | 2 +- django/archives/mailarchives/templates/message.html | 12 ++++++------ .../mailarchives/templates/message_flat.html | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/django/archives/mailarchives/templates/datelist.html b/django/archives/mailarchives/templates/datelist.html index 1602ca9..0799420 100644 --- a/django/archives/mailarchives/templates/datelist.html +++ b/django/archives/mailarchives/templates/datelist.html @@ -14,7 +14,7 @@

{{m.date.date}}

diff --git a/django/archives/mailarchives/templates/message.html b/django/archives/mailarchives/templates/message.html index 1d09e24..c733a1f 100644 --- a/django/archives/mailarchives/templates/message.html +++ b/django/archives/mailarchives/templates/message.html @@ -45,13 +45,13 @@ $(function(){ Message-ID: - {{msg.messageid}} (view raw or whole thread) + {{msg.messageid}} (view raw or whole thread) Thread: @@ -83,14 +83,14 @@ Description: {{a.contenttype}} ({{a.len|filesizeformat}}) {%if a.inlineable%}(in {%if parent%}

In response to

{%endif%} {%if responses %}

Responses

{%endif%} @@ -100,11 +100,11 @@ Description: {{a.contenttype}} ({{a.len|filesizeformat}}) {%if a.inlineable%}(in
{%if info.next%} - + {%endif%} {%if info.prev%} - + {%endif%}
Next:From: {{info.next.from|nameonly}}Date: {{info.next.date}}
Next:From: {{info.next.from|nameonly}}Date: {{info.next.date}}
Subject: {{info.next.subject}}
Previous:From: {{info.prev.from|nameonly}}Date: {{info.prev.date}}
Previous:From: {{info.prev.from|nameonly}}Date: {{info.prev.date}}
Subject: {{info.prev.subject}}
diff --git a/django/archives/mailarchives/templates/message_flat.html b/django/archives/mailarchives/templates/message_flat.html index d4bb4b7..ca3935a 100644 --- a/django/archives/mailarchives/templates/message_flat.html +++ b/django/archives/mailarchives/templates/message_flat.html @@ -16,7 +16,7 @@ window.onload = load;

{{msg.subject}}

{%for m in allmsg %}
- + @@ -42,7 +42,7 @@ window.onload = load; - +
From:
Message-ID:{{m.messageid}} (view raw){{m.messageid}} (view raw)
-- 2.39.5