From: lpsolit%gmail.com <> Date: Fri, 16 Jun 2006 20:27:58 +0000 (+0000) Subject: Bug 341689: 'Edit Attachment As Comment' converts plain text to HTML entities - Patch... X-Git-Tag: bugzilla-2.22.1~97 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbed6be4ac8595d425d98aed5751f98a14d8abce;p=thirdparty%2Fbugzilla.git Bug 341689: 'Edit Attachment As Comment' converts plain text to HTML entities - Patch by Frédéric Buclin r/a=myk --- diff --git a/template/en/default/attachment/edit.html.tmpl b/template/en/default/attachment/edit.html.tmpl index eefe141f80..f34c4593ea 100644 --- a/template/en/default/attachment/edit.html.tmpl +++ b/template/en/default/attachment/edit.html.tmpl @@ -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( /^
/i , "" );