$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:
Jon Parise 2001-01-05 19:59:00 +00:00
parent 6e9061f40a
commit 41f165e022

View File

@ -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;