From 82e546e2a40e9ecaf33080734bd2b8bf2f57a7fb Mon Sep 17 00:00:00 2001 From: "myk%mozilla.org" <> Date: Sat, 27 Apr 2002 01:12:54 +0000 Subject: 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 --- template/en/default/attachment/edit.html.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'template/en/default') 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( /^
/ , "" );
-          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 , "&" );
-- 
cgit v1.2.3-24-g4f1b