Commit b9c01561 authored by Reed Loden's avatar Reed Loden

Bug 657158 - (CVE-2011-2381) [SECURITY] Request email headers for attachment…

Bug 657158 - (CVE-2011-2381) [SECURITY] Request email headers for attachment containing newline are corrupt [r=LpSolit a=LpSolit]
parent 1e41eccc
...@@ -695,6 +695,9 @@ sub create { ...@@ -695,6 +695,9 @@ sub create {
# as prefix. In addition it replaces a ' ' by a '_'. # as prefix. In addition it replaces a ' ' by a '_'.
css_class_quote => \&Bugzilla::Util::css_class_quote , css_class_quote => \&Bugzilla::Util::css_class_quote ,
# Removes control characters and trims extra whitespace.
clean_text => \&Bugzilla::Util::clean_text ,
quoteUrls => [ sub { quoteUrls => [ sub {
my ($context, $bug, $comment) = @_; my ($context, $bug, $comment) = @_;
return sub { return sub {
......
...@@ -50,7 +50,7 @@ From: [% Param('mailfrom') %] ...@@ -50,7 +50,7 @@ From: [% Param('mailfrom') %]
To: [% to %] To: [% to %]
Subject: [% flagtype_name %] [%+ subject_status %]: [[% terms.Bug %] [%+ bug.bug_id %]] [% bug.short_desc %] Subject: [% flagtype_name %] [%+ subject_status %]: [[% terms.Bug %] [%+ bug.bug_id %]] [% bug.short_desc %]
[%- IF attachment %] : [%- IF attachment %] :
[Attachment [% attachment.id %]] [% attachment.description %][% END %] [Attachment [% attachment.id %]] [% attachment.description FILTER clean_text %][% END %]
Date: [% date %] Date: [% date %]
X-Bugzilla-Type: request X-Bugzilla-Type: request
[%+ threadingmarker %] [%+ threadingmarker %]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment