From: myk%mozilla.org <> Date: Sat, 27 Apr 2002 01:12:54 +0000 (+0000) Subject: Fix for bug 140354: Prevents "edit attachment as comment" from displaying opening... X-Git-Tag: bugzilla-2.16rc1~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82e546e2a40e9ecaf33080734bd2b8bf2f57a7fb;p=thirdparty%2Fbugzilla.git 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 2xr=gerv --- diff --git a/template/en/default/attachment/edit.html.tmpl b/template/en/default/attachment/edit.html.tmpl index 26db832d38..6d29d6f03a 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( /^
/ , "" );
-          theContent = theContent.replace( /<\/pre><\/body><\/html>$/ , "" );
+          theContent = theContent.replace( /^
/i , "" );
+          theContent = theContent.replace( /<\/pre><\/body><\/html>$/i , "" );
           theContent = theContent.replace( /</gi , "<" );
           theContent = theContent.replace( />/gi , ">" );
           theContent = theContent.replace( /&/gi , "&" );