a722fd3
=== modified file 'Bugzilla/Template.pm'
a722fd3
--- Bugzilla/Template.pm	2011-02-14 21:56:52 +0000
a722fd3
+++ Bugzilla/Template.pm	2011-07-06 14:44:21 +0000
a722fd3
@@ -549,6 +549,9 @@
a722fd3
             # as prefix. In addition it replaces a ' ' by a '_'.
a722fd3
             css_class_quote => \&Bugzilla::Util::css_class_quote ,
a722fd3
 
a722fd3
+            # Removes control characters and trims extra whitespace.
a722fd3
+            clean_text => \&Bugzilla::Util::clean_text ,
a722fd3
+
a722fd3
             quoteUrls => [ sub {
a722fd3
                                my ($context, $bug) = @_;
a722fd3
                                return sub {
a722fd3
a722fd3
=== modified file 'template/en/default/request/email.txt.tmpl'
a722fd3
--- template/en/default/request/email.txt.tmpl	2009-09-03 19:05:33 +0000
a722fd3
+++ template/en/default/request/email.txt.tmpl	2011-07-06 14:43:11 +0000
a722fd3
@@ -50,7 +50,7 @@
a722fd3
 To: [% to %]
a722fd3
 Subject: [% flag.type.name %] [%+ subject_status %]: [[% terms.Bug %] [%+ bug.bug_id %]] [% bug.short_desc %]
a722fd3
 [%- IF attachment %] :
a722fd3
-  [Attachment [% attachment.id %]] [% attachment.description %][% END %]
a722fd3
+  [Attachment [% attachment.id %]] [% attachment.description FILTER clean_text %][% END %]
a722fd3
 X-Bugzilla-Type: request
a722fd3
 [%+ threadingmarker %]
a722fd3
 
a722fd3