summaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authormyk%mozilla.org <>2002-04-27 03:12:54 +0200
committermyk%mozilla.org <>2002-04-27 03:12:54 +0200
commit82e546e2a40e9ecaf33080734bd2b8bf2f57a7fb (patch)
tree471620744e510a21a7142b95e08dc90905235755 /template
parent6808892ba82eb158ec62ee204cd1832a1d261de2 (diff)
downloadbugzilla-82e546e2a40e9ecaf33080734bd2b8bf2f57a7fb.tar.gz
bugzilla-82e546e2a40e9ecaf33080734bd2b8bf2f57a7fb.tar.xz
Fix for bug 140354: Prevents "edit attachment as comment" from displaying opening and closing HTML tags on recent versions of Mozilla by making the regexp that finds and removes them case-insensitive.
Patch by Myk Melez <myk@mozilla.org> 2xr=gerv
Diffstat (limited to 'template')
-rw-r--r--template/en/default/attachment/edit.html.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/template/en/default/attachment/edit.html.tmpl b/template/en/default/attachment/edit.html.tmpl
index 26db832d3..6d29d6f03 100644
--- a/template/en/default/attachment/edit.html.tmpl
+++ b/template/en/default/attachment/edit.html.tmpl
@@ -53,8 +53,8 @@
var contentType = '[% contenttype %]';
if ( contentType == 'text/plain' )
{
- theContent = theContent.replace( /^<html><head\/><body><pre>/ , "" );
- theContent = theContent.replace( /<\/pre><\/body><\/html>$/ , "" );
+ theContent = theContent.replace( /^<html><head\/><body><pre>/i , "" );
+ theContent = theContent.replace( /<\/pre><\/body><\/html>$/i , "" );
theContent = theContent.replace( /&lt;/gi , "<" );
theContent = theContent.replace( /&gt;/gi , ">" );
theContent = theContent.replace( /&amp;/gi , "&" );