aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2008-05-14 03:28:12 +0000
committerlpsolit%gmail.com <>2008-05-14 03:28:12 +0000
commitdc57a4117a58ce2c6ef58c5ea37d6ebc6ebc9fd5 (patch)
tree72435e4d9b2721b48a4051403144ca859cf55309 /email_in.pl
parentBug 330989: illegal_change_deps error uses "empowered" inconsistently with "a... (diff)
downloadbugzilla-dc57a4117a58ce2c6ef58c5ea37d6ebc6ebc9fd5.tar.gz
bugzilla-dc57a4117a58ce2c6ef58c5ea37d6ebc6ebc9fd5.tar.bz2
bugzilla-dc57a4117a58ce2c6ef58c5ea37d6ebc6ebc9fd5.zip
Bug 431704: Remove useless newlines in replies sent by email_in.pl - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=LpSolit
Diffstat (limited to 'email_in.pl')
-rw-r--r--email_in.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/email_in.pl b/email_in.pl
index 81637ebc4..12be24471 100644
--- a/email_in.pl
+++ b/email_in.pl
@@ -287,6 +287,8 @@ sub html_strip {
$var =~ s/\&gt;/>/g;
$var =~ s/\&quot;/\"/g;
$var =~ s/&#64;/@/g;
+ # Also remove undesired newlines and consecutive spaces.
+ $var =~ s/[\n\s]+/ /gms;
return $var;
}
@@ -312,7 +314,7 @@ sub die_handler {
my $reply = reply(to => $input_email, top_post => 1, body => "$msg\n");
MessageToMTA($reply->as_string);
}
- print STDERR $msg;
+ print STDERR "$msg\n";
# We exit with a successful value, because we don't want the MTA
# to *also* send a failure notice.
exit;