#18991 [NEW]: mimeDecode bug

From: Date: Tue, 20 Aug 2002 17:38:31 +0000
Subject: #18991 [NEW]: mimeDecode bug
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-8530@lists.php.net to get a copy of this message
From: okin7@yahoo.fr Operating system: Linux PHP version: 4.1.2 PHP Bug Type: PEAR related Bug description: mimeDecode bug In found two mistakes in PEAR/Mail/mimeDecode.php and corrected it : line 467 : switch ( $encoding ) { replaced with : switch ( strtolower($encoding) ) { AND line 278 : $return->parts[] = $obj->decode(array( 'include_bodies' => $this->_include_bodies)); replaced with : $return->parts[] = $obj->decode(array( 'include_bodies' => $this->_include_bodies, 'decode_bodies' => $this->_decode_bodies, 'decode_headers' => $this->_decode_headers)); I found the first bug by parsing emails send from Pine witch, in my case, sends uppercapitalized headers. The second one occurs when decoding a mail with a RFC822 attachment : this attachment wasn't decoded. Please tell me if my bug report is helpfull for you, i don't know what is behind this reporting bug system. Thank -- Edit bug report at http://bugs.php.net/?id=18991&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=18991&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=18991&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=18991&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=18991&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=18991&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=18991&r=support Expected behavior: http://bugs.php.net/fix.php?id=18991&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=18991&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=18991&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=18991&r=globals

« previous php.pear.dev (#8530) next »