зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
cccab4cf0c
Коммит
a19ec48c3b
|
@ -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';
|
||||
|
|
Загрузка…
Ссылка в новой задаче