Commit 82e546e2 authored by myk%mozilla.org's avatar myk%mozilla.org

Fix for bug 140354: Prevents "edit attachment as comment" from displaying…

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
parent 6808892b
......@@ -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 , "&" );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment