From 36e4d1fddb336e0ebfb61e0b7870e2b60c666ef5 Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Wed, 10 Aug 2011 01:46:03 +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/en') diff --git a/template/en/default/global/user-error.html.tmpl b/template/en/default/global/user-error.html.tmpl index af2fc7b36..5af39dc80 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