summaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2013-12-05 18:57:01 +0100
committerByron Jones <bjones@mozilla.com>2013-12-05 18:57:01 +0100
commit1e95357d5127c40acc4bf6e7ed10739f30c6ca95 (patch)
tree4957247cdaf95a7923b6eaf2db3c0b0433add915 /template
parent8ba55d70d8d4e652037939bb9be52e22ce44992d (diff)
downloadbugzilla-1e95357d5127c40acc4bf6e7ed10739f30c6ca95.tar.gz
bugzilla-1e95357d5127c40acc4bf6e7ed10739f30c6ca95.tar.xz
Bug 922226: redirect when attachments contain reviewboard URLs
Diffstat (limited to 'template')
-rw-r--r--template/en/default/attachment/edit.html.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/template/en/default/attachment/edit.html.tmpl b/template/en/default/attachment/edit.html.tmpl
index cbc66e95a..85dabbcb7 100644
--- a/template/en/default/attachment/edit.html.tmpl
+++ b/template/en/default/attachment/edit.html.tmpl
@@ -209,7 +209,7 @@
%]
[% ELSE %]
<iframe id="viewFrame" src="attachment.cgi?id=[% attachment.id %]
- [%- "&amp;content_type=text/plain" IF attachment.contenttype == 'text/x-github-pull-request' %]">
+ [%- "&amp;content_type=text/plain" IF attachment.contenttype.match('^text/x-') %]">
<b>You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
<a href="attachment.cgi?id=[% attachment.id %]">View the attachment on a separate page</a>.</b>
</iframe>