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

From: Date: Tue, 26 Nov 2002 02:33:52 +0000
Subject: #20633 [NEW]: '_decodeBody()' of PEAR/Mail/mimeDecode.php is processed by case-sensitive.
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-11095@lists.php.net to get a copy of this message
From: mtak@beyondnetworks.co.jp Operating system: RedHat7.3 PHP version: 4.3.0RC1 PHP Bug Type: PEAR related Bug description: '_decodeBody()' of PEAR/Mail/mimeDecode.php is processed by case-sensitive. 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 bug report at http://bugs.php.net/?id=20633&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=20633&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=20633&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=20633&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=20633&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=20633&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=20633&r=support Expected behavior: http://bugs.php.net/fix.php?id=20633&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=20633&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=20633&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=20633&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20633&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=20633&r=dst IIS Stability: http://bugs.php.net/fix.php?id=20633&r=isapi

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