From bd4bfe35ac0c3c7808bedf99a9f6c68b16ec215b Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Thu, 14 May 2015 15:05:09 +0200 Subject: Bug 1160809: Validate the MIME type before uploading attachments r=dkl a=glob --- template/en/default/attachment/createformcontents.html.tmpl | 3 +++ template/en/default/attachment/edit.html.tmpl | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'template/en') diff --git a/template/en/default/attachment/createformcontents.html.tmpl b/template/en/default/attachment/createformcontents.html.tmpl index 48e4f4af0..293fc3d92 100644 --- a/template/en/default/attachment/createformcontents.html.tmpl +++ b/template/en/default/attachment/createformcontents.html.tmpl @@ -68,6 +68,9 @@ : diff --git a/template/en/default/attachment/edit.html.tmpl b/template/en/default/attachment/edit.html.tmpl index b6f612f3f..092f3e76a 100644 --- a/template/en/default/attachment/edit.html.tmpl +++ b/template/en/default/attachment/edit.html.tmpl @@ -94,9 +94,12 @@ + pattern="([% constants.LEGAL_CONTENT_TYPES.join('|') FILTER html %])/.+" + title="The content type must be of the form 'type/subtype', where 'type' + is one of: [% constants.LEGAL_CONTENT_TYPES.join(', ') FILTER html %]" + value="[% attachment.contenttype FILTER html %]"> - +
Creator: [%+ INCLUDE global/user.html.tmpl who = attachment.attacher %] -- cgit v1.2.3-24-g4f1b