mirror of
https://github.com/php/php-src.git
synced 2024-11-28 20:34:29 +08:00
$from_arr is a two-dimensional array here. Treat it as such.
Submitted by: Max Kalika <max@the-triumvirate.net>
This commit is contained in:
parent
6e9061f40a
commit
41f165e022
@ -119,7 +119,7 @@ class Mail extends PEAR {
|
||||
include_once 'Mail/rfc822.php';
|
||||
|
||||
$from_arr = Mail_rfc822::parseAddressList($val, 'localhost', false);
|
||||
$from = $from_arr[0]->mailbox . '@' . $from_arr[0]->host;
|
||||
$from = $from_arr[0][0]->mailbox . '@' . $from_arr[0][0]->host;
|
||||
if (strstr($from, ' ')) {
|
||||
// Reject outright envelope From addresses with spaces.
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user