From: Jon Parise Date: Fri, 5 Jan 2001 19:59:00 +0000 (+0000) Subject: $from_arr is a two-dimensional array here. Treat it as such. X-Git-Tag: php-4.0.5RC1~718 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=41f165e022675663e672acc384a94d260d82dc2f;p=php $from_arr is a two-dimensional array here. Treat it as such. Submitted by: Max Kalika --- diff --git a/pear/Mail.php b/pear/Mail.php index 0240d449c0..a25befffa7 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]->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;