cvs: pear /Mail_Mime mime.php

From: Date: Sun, 09 Apr 2006 16:18:27 +0000
Subject: cvs: pear /Mail_Mime mime.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-39518@lists.php.net to get a copy of this message
cipri Sun Apr 9 16:18:27 2006 UTC Modified files: /pear/Mail_Mime mime.php Log: Bug #4057: Content-Type now has name-header. http://cvs.php.net/viewcvs.cgi/pear/Mail_Mime/mime.php?r1=1.50&r2=1.51&diff_format=u Index: pear/Mail_Mime/mime.php diff -u pear/Mail_Mime/mime.php:1.50 pear/Mail_Mime/mime.php:1.51 --- pear/Mail_Mime/mime.php:1.50 Sun Apr 9 15:55:34 2006 +++ pear/Mail_Mime/mime.php Sun Apr 9 16:18:27 2006 @@ -35,7 +35,7 @@ // | Tomas V.V.Cox <cox@idecnet.com> (port to PEAR) | // +-----------------------------------------------------------------------+ // -// $Id: mime.php,v 1.50 2006/04/09 15:55:34 cipri Exp $ +// $Id: mime.php,v 1.51 2006/04/09 16:18:27 cipri Exp $ require_once('PEAR.php'); require_once('Mail/mimePart.php'); @@ -432,7 +432,8 @@ */ function &_addHtmlImagePart(&$obj, $value) { - $params['content_type'] = $value['c_type']; + $params['content_type'] = $value['c_type'] . '; ' . + 'name="' . $params['dfilename'] . '"'; $params['encoding'] = 'base64'; $params['disposition'] = 'inline'; $params['dfilename'] = $value['name']; @@ -453,7 +454,8 @@ */ function &_addAttachmentPart(&$obj, $value) { - $params['content_type'] = $value['c_type']; + $params['content_type'] = $value['c_type'] . '; ' . + 'name="' . $params['dfilename'] . '"'; $params['encoding'] = $value['encoding']; $params['disposition'] = isset($value['disposition']) ? $value['disposition'] : 'attachment';

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