]> 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:26:03 +0000 (20:26 +0000)
committerlpsolit%gmail.com <>
Fri, 16 Jun 2006 20:26:03 +0000 (20:26 +0000)
template/en/default/attachment/edit.html.tmpl

index 2f02aae34c5b6ac6ab44b4b180fc52c797170d2c..6dfc8b09965c81daed64e81c13362f2142da2b97 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 , "" );