#20633 [Asn->Csd]: '_decodeBody()' of PEAR/Mail/mimeDecode.php is processed by case-sensitive.

From: Date: Sat, 05 Apr 2003 15:25:41 +0000
Subject: #20633 [Asn->Csd]: '_decodeBody()' of PEAR/Mail/mimeDecode.php is processed by case-sensitive.
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-14918@lists.php.net to get a copy of this message
ID: 20633 Updated by: richard@php.net Reported By: mtak at beyondnetworks dot co dot jp -Status: Assigned +Status: Closed Bug Type: PEAR related Operating System: RedHat7.3 PHP Version: 4.3.0RC1 Assigned To: richard New Comment: This bug has been fixed in CVS. In case this was a PHP problem, snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2003-02-26 14:43:21] derick@php.net Assign this properly. Derick ------------------------------------------------------------------------ [2002-11-25 20:33:52] mtak at beyondnetworks dot co dot jp Mail_mime-1.2.1 mimeDecode.php v1.34 -- not included php4.3.0RC1 'content-transfet-encoding: BASE64' does not work. The value is defined as case-insensitive by RFC1521. ...diff... --- mimeDecode.php Sat Jul 27 23:37:53 2002 +++ mimeDecode.new Tue Nov 26 11:19:24 2002 @@ -522,7 +522,7 @@ */ function _decodeBody($input, $encoding = '7bit') { - switch ($encoding) { + switch (strtolower($encoding)) { case '7bit': return $input; break; ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=20633&edit=1

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