1
0
mirror of https://github.com/php/php-src.git synced 2026-03-31 20:53:00 +02:00

revert Jon's patch, leaving only the correct one.

This commit is contained in:
Chuck Hagenbuch
2001-01-05 20:03:01 +00:00
parent 41f165e022
commit 12f2d57caa

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][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;