]> granicus.if.org Git - php/commitdiff
revert Jon's patch, leaving only the correct one.
authorChuck Hagenbuch <chagenbu@php.net>
Fri, 5 Jan 2001 20:03:01 +0000 (20:03 +0000)
committerChuck Hagenbuch <chagenbu@php.net>
Fri, 5 Jan 2001 20:03:01 +0000 (20:03 +0000)
pear/Mail.php

index a25befffa7f88278b95563926830ae0f50cf0cdf..0240d449c0b505490cd9110c6fe6d76a1024c511 100644 (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;