]> granicus.if.org Git - php/commitdiff
make sure we get back a flat array from parseAddressList().
authorChuck Hagenbuch <chagenbu@php.net>
Fri, 5 Jan 2001 19:53:01 +0000 (19:53 +0000)
committerChuck Hagenbuch <chagenbu@php.net>
Fri, 5 Jan 2001 19:53:01 +0000 (19:53 +0000)
pear/Mail.php

index e955510d76061fcf588d2b5e8f9ab31ab34087fd..0240d449c0b505490cd9110c6fe6d76a1024c511 100644 (file)
@@ -118,7 +118,7 @@ class Mail extends PEAR {
             if ($key == 'From') {
                 include_once 'Mail/rfc822.php';
                 
-                $from_arr = Mail_rfc822::parseAddressList($val, 'localhost');
+                $from_arr = Mail_rfc822::parseAddressList($val, 'localhost', false);
                 $from = $from_arr[0]->mailbox . '@' . $from_arr[0]->host;
                 if (strstr($from, ' ')) {
                     // Reject outright envelope From addresses with spaces.