cvs: php4 /pear Mail.php

From: Date: Fri, 05 Jan 2001 19:53:01 +0000
Subject: cvs: php4 /pear Mail.php
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-3389@lists.php.net to get a copy of this message
chagenbu Fri Jan 5 11:53:01 2001 EDT Modified files: /php4/pear Mail.php Log: make sure we get back a flat array from parseAddressList(). Index: php4/pear/Mail.php diff -u php4/pear/Mail.php:1.4 php4/pear/Mail.php:1.5 --- php4/pear/Mail.php:1.4 Wed Jan 3 10:24:20 2001 +++ php4/pear/Mail.php Fri Jan 5 11:53:01 2001 @@ -118,7 +118,7 @@ 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.

« previous php.cvs (#3389) next »