cvs: php4 /pear/Mail mimeDecode.php

From: Date: Thu, 04 Oct 2001 21:44:07 +0000
Subject: cvs: php4 /pear/Mail mimeDecode.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-926@lists.php.net to get a copy of this message
heyesr Thu Oct 4 17:44:07 2001 EDT Modified files: /php4/pear/Mail mimeDecode.php Log: Minor bugfix Index: php4/pear/Mail/mimeDecode.php diff -u php4/pear/Mail/mimeDecode.php:1.5 php4/pear/Mail/mimeDecode.php:1.6 --- php4/pear/Mail/mimeDecode.php:1.5 Mon Oct 1 10:33:53 2001 +++ php4/pear/Mail/mimeDecode.php Thu Oct 4 17:44:06 2001 @@ -49,7 +49,7 @@ * - Implement decoding of bodies (Just need the _decodeBodies method writing) * * @author Richard Heyes <richard.heyes@heyes-computing.net> -* @version $Revision: 1.5 $ +* @version $Revision: 1.6 $ * @package Mail */ @@ -244,11 +244,13 @@ switch (strtolower($content_type['value'])) { case 'text/plain': - $this->_include_bodies ? $return->body = ($this->_decode_bodies ? $this->_decodeBody($body, $content_transfer_encoding['value']) : $body) : null; + $encoding = isset($content_transfer_encoding) ? $content_transfer_encoding['value'] : '7bit'; + $this->_include_bodies ? $return->body = ($this->_decode_bodies ? $this->_decodeBody($body, $encoding) : $body) : null; break; case 'text/html': - $this->_include_bodies ? $return->body = ($this->_decode_bodies ? $this->_decodeBody($body, $content_transfer_encoding['value']) : $body) : null; + $encoding = isset($content_transfer_encoding) ? $content_transfer_encoding['value'] : '7bit'; + $this->_include_bodies ? $return->body = ($this->_decode_bodies ? $this->_decodeBody($body, $encoding) : $body) : null; break; case 'multipart/digest':

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