From: Chuck Hagenbuch Date: Fri, 5 Jan 2001 19:53:01 +0000 (+0000) Subject: make sure we get back a flat array from parseAddressList(). X-Git-Tag: php-4.0.5RC1~719 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6e9061f40a408eedee483a23ac9beca41c980d88;p=php make sure we get back a flat array from parseAddressList(). --- diff --git a/pear/Mail.php b/pear/Mail.php index e955510d76..0240d449c0 100644 --- a/pear/Mail.php +++ b/pear/Mail.php @@ -118,7 +118,7 @@ class Mail extends PEAR { if ($key == 'From') { include_once 'Mail/rfc822.php'; - $from_arr = Mail_rfc822::parseAddressList($val, 'localhost'); + $from_arr = Mail_rfc822::parseAddressList($val, 'localhost', false); $from = $from_arr[0]->mailbox . '@' . $from_arr[0]->host; if (strstr($from, ' ')) { // Reject outright envelope From addresses with spaces.