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

This commit is contained in:
lpsolit%gmail.com 2006-05-22 17:31:52 +00:00
Родитель cccab4cf0c
Коммит a19ec48c3b
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -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';