cvs: php4 /pear Mail.php

From: Date: Fri, 05 Jan 2001 19:59:01 +0000
Subject: cvs: php4 /pear Mail.php
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-3390@lists.php.net to get a copy of this message
jon Fri Jan 5 11:59:01 2001 EDT Modified files: /php4/pear Mail.php Log: $from_arr is a two-dimensional array here. Treat it as such. Submitted by: Max Kalika <max@the-triumvirate.net> Index: php4/pear/Mail.php diff -u php4/pear/Mail.php:1.5 php4/pear/Mail.php:1.6 --- php4/pear/Mail.php:1.5 Fri Jan 5 11:53:01 2001 +++ php4/pear/Mail.php Fri Jan 5 11:59:00 2001 @@ -119,7 +119,7 @@ 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;

« previous php.cvs (#3390) next »