From 10b07dbd8e3e96c53bb6f46874ecab1108146494 Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Wed, 10 Aug 2011 01:37:14 +0200 Subject: Bug 677187: If the attachment filename contains a newline, an error is thrown when trying to download the attachment r/a=mkanat --- template/en/default/global/user-error.html.tmpl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'template') diff --git a/template/en/default/global/user-error.html.tmpl b/template/en/default/global/user-error.html.tmpl index 387a7df03..b3d92e45e 100644 --- a/template/en/default/global/user-error.html.tmpl +++ b/template/en/default/global/user-error.html.tmpl @@ -927,8 +927,9 @@ [% title = "Invalid Content-Type" %] The content type [% contenttype FILTER html %] is invalid. Valid types must be of the form foo/bar where foo - is one of [% constants.LEGAL_CONTENT_TYPES.join(', ') FILTER html %]. - + is one of [% constants.LEGAL_CONTENT_TYPES.join(', ') FILTER html %] + and bar must not contain any special characters (such as "=", "?", ...). + [% ELSIF error == "invalid_context" %] [% title = "Invalid Context" %] The context [% context FILTER html %] is invalid (must be a number, -- cgit v1.2.3-24-g4f1b