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
/ , "" ); - 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 , "&" );