cvs: php4 /pear/Mail mime.php

From: Date: Fri, 14 Sep 2001 15:09:03 +0000
Subject: cvs: php4 /pear/Mail mime.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-847@lists.php.net to get a copy of this message
cox Fri Sep 14 11:09:03 2001 EDT Modified files: /php4/pear/Mail mime.php Log: forgot to always put names without path in embedded images names also (thanks to "Robin Vervoorn" <vervoorn@auxilium-sd.nl> for reporting) Index: php4/pear/Mail/mime.php diff -u php4/pear/Mail/mime.php:1.2 php4/pear/Mail/mime.php:1.3 --- php4/pear/Mail/mime.php:1.2 Wed Aug 8 20:53:56 2001 +++ php4/pear/Mail/mime.php Fri Sep 14 11:09:03 2001 @@ -16,7 +16,7 @@ // | Authors: Tomas V.V.Cox <cox@idecnet.com> | // +----------------------------------------------------------------------+ // -// $Id: mime.php,v 1.2 2001/08/09 00:53:56 alexmerz Exp $ +// $Id: mime.php,v 1.3 2001/09/14 15:09:03 cox Exp $ require_once 'PEAR.php'; @@ -50,12 +50,12 @@ /** * list of the attached images * @var array - */ + */ var $html_images = array(); /** * list of the attachements * @var array - */ + */ var $parts = array(); /* @@ -198,7 +198,7 @@ return $file; } $this->html_images[] = array( 'body' => $file, - 'name' => $file_name, + 'name' => basename($file_name), 'c_type' => $c_type, 'cid' => md5(uniqid(time())) );

« previous php.pear.cvs (#847) next »