Commit 16498860 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 331365: Sendmail complains about a possible attack because there's a newline…

Bug 331365: Sendmail complains about a possible attack because there's a newline in the email address - Patch by Teemu Mannermaa <wicked+bz@etlicon.fi> r=glob a=justdave
parent ad75173f
......@@ -682,7 +682,8 @@ sub MessageToMTA {
$headers = new Mail::Header \@header_lines, Modify => 0;
}
my $from = $headers->get('from');
# Use trim to remove any whitespace (incl. newlines)
my $from = trim($headers->get('from'));
if (Param("mail_delivery_method") eq "sendmail" && $^O =~ /MSWin32/i) {
my $cmd = '|' . SENDMAIL_EXE . ' -t -i';
......
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