]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 341689: 'Edit Attachment As Comment' converts plain text to HTML entities - Patch...
authorlpsolit%gmail.com <>
Fri, 16 Jun 2006 20:27:58 +0000 (20:27 +0000)
committerlpsolit%gmail.com <>
Fri, 16 Jun 2006 20:27:58 +0000 (20:27 +0000)
template/en/default/attachment/edit.html.tmpl

index eefe141f8044f1de32a45b9aa6dcc21470ba6081..f34c4593eaebfab0a416fce1612cd91faeb81107 100644 (file)
@@ -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 , "" );