aboutsummaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-06-16 20:26:03 +0000
committerlpsolit%gmail.com <>2006-06-16 20:26:03 +0000
commitf35e18b585fd8c2604e43d1fbdf53a36bf77e804 (patch)
treeedfa3c0fc00225c08f404f96940f41376e411d7e /template
parent3d9bbd971bb1b9020f9c93a74e844bc6dd019ab9 (diff)
downloadbugs-f35e18b585fd8c2604e43d1fbdf53a36bf77e804.tar
bugs-f35e18b585fd8c2604e43d1fbdf53a36bf77e804.tar.gz
bugs-f35e18b585fd8c2604e43d1fbdf53a36bf77e804.tar.bz2
bugs-f35e18b585fd8c2604e43d1fbdf53a36bf77e804.tar.xz
bugs-f35e18b585fd8c2604e43d1fbdf53a36bf77e804.zip
Bug 341689: 'Edit Attachment As Comment' converts plain text to HTML entities - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=myk
Diffstat (limited to 'template')
-rw-r--r--template/en/default/attachment/edit.html.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/template/en/default/attachment/edit.html.tmpl b/template/en/default/attachment/edit.html.tmpl
index 2f02aae34..6dfc8b099 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( /^<html><head\/?><body><pre>/i , "" );