cvs: pear /Mail_Mime mimeDecode.php

From: Date: Wed, 02 Apr 2003 22:31:44 +0000
Subject: cvs: pear /Mail_Mime mimeDecode.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-9707@lists.php.net to get a copy of this message
urs Wed Apr 2 17:31:44 2003 EDT Modified files: /pear/Mail_Mime mimeDecode.php Log: - E_NOTICE message fix for ZE2, jan@horde.org - case sensitivity fix - some ws Index: pear/Mail_Mime/mimeDecode.php diff -u pear/Mail_Mime/mimeDecode.php:1.36 pear/Mail_Mime/mimeDecode.php:1.37 --- pear/Mail_Mime/mimeDecode.php:1.36 Sat Jan 4 06:55:34 2003 +++ pear/Mail_Mime/mimeDecode.php Wed Apr 2 17:31:44 2003 @@ -1,6 +1,6 @@ <?Php // +-----------------------------------------------------------------------+ -// | Copyright (c) 2002-2003 Richard Heyes | +// | Copyright (c) 2002-2003 Richard Heyes | // | All rights reserved. | // | | // | Redistribution and use in source and binary forms, with or without | @@ -85,7 +85,7 @@ * * @author Richard Heyes <richard@phpguru.org> -* @version $Revision: 1.36 $ +* @version $Revision: 1.37 $ * @package Mail */ @@ -223,6 +223,7 @@ function _decode($headers, $body, $default_ctype = 'text/plain') { $return = new stdClass; + $return->headers = array(); $headers = $this->_parseHeaders($headers); foreach ($headers as $value) { @@ -543,7 +544,7 @@ */ function _decodeBody($input, $encoding = '7bit') { - switch ($encoding) { + switch (strtolower($encoding)) { case '7bit': return $input; break; @@ -700,14 +701,6 @@ $to = substr($to,1); return array($to,$header,$this->_body); } - - - - - - - - /** * Returns a xml copy of the output of

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