diff options
author | myk%mozilla.org <> | 2002-04-27 03:12:54 +0200 |
---|---|---|
committer | myk%mozilla.org <> | 2002-04-27 03:12:54 +0200 |
commit | 82e546e2a40e9ecaf33080734bd2b8bf2f57a7fb (patch) | |
tree | 471620744e510a21a7142b95e08dc90905235755 /template | |
parent | 6808892ba82eb158ec62ee204cd1832a1d261de2 (diff) | |
download | bugzilla-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.tmpl | 4 |
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( /</gi , "<" ); theContent = theContent.replace( />/gi , ">" ); theContent = theContent.replace( /&/gi , "&" ); |