From: Chuck Hagenbuch Date: Fri, 5 Jan 2001 20:03:01 +0000 (+0000) Subject: revert Jon's patch, leaving only the correct one. X-Git-Tag: php-4.0.5RC1~717 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=12f2d57caad3ef554ab60f6308b2bf95951b2c97;p=php revert Jon's patch, leaving only the correct one. --- diff --git a/pear/Mail.php b/pear/Mail.php index a25befffa7..0240d449c0 100644 --- a/pear/Mail.php +++ b/pear/Mail.php @@ -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][0]->mailbox . '@' . $from_arr[0][0]->host; + $from = $from_arr[0]->mailbox . '@' . $from_arr[0]->host; if (strstr($from, ' ')) { // Reject outright envelope From addresses with spaces. return false;