Commit f35e18b5 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 341689: 'Edit Attachment As Comment' converts plain text to HTML entities -…

Bug 341689: 'Edit Attachment As Comment' converts plain text to HTML entities - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=myk
parent 3d9bbd97
......@@ -62,7 +62,7 @@
// If this is a plaintext document, remove cruft that Mozilla adds
// because it treats it as an HTML document with a big PRE section.
// http://bugzilla.mozilla.org/show_bug.cgi?id=86012
var contentType = '[% contenttype FILTER js %]';
var contentType = '[% attachment.contenttype FILTER js %]';
if ( contentType == 'text/plain' )
{
theContent = theContent.replace( /^<html><head\/?><body><pre>/i , "" );
......
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