#31911 [Opn->Asn]: mb_decode_mimeheader is case-sensitive to hex escapes.
| From: | moriyoshi@php.net | Date: | Thu, 17 Feb 2005 14:03:57 +0000 |
| Subject: | #31911 [Opn->Asn]: mb_decode_mimeheader is case-sensitive to hex escapes. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-74230@lists.php.net to get a copy of this message | ||
ID: 31911
Updated by: moriyoshi@php.net
Reported By: jazfresh at hotmail dot com
-Status: Open
+Status: Assigned
Bug Type: mbstring related
Operating System: Linux Fedora Core
PHP Version: 5.0.3
-Assigned To:
+Assigned To: moriyoshi
Previous Comments:
------------------------------------------------------------------------
[2005-02-10 10:32:30] jazfresh at hotmail dot com
Description:
------------
This was reported in the tips section for this function, but I didn't
find it in the bug database.
The encoded text uses hex to represent escaped characters (e.g. "=3F"
means the '?' character). RFC 2047 says that these hex digits can be
either in upper or lower case. However, this function fails to convert
them if the hex character is specified in lower case.
Reproduce code:
---------------
echo mb_decode_mimeheader("Works: =?iso-8859-1?q?=3F=3F=3F?=");
echo "\n";
echo mb_decode_mimeheader("Fails: =?iso-8859-1?q?=3f=3f=3f?=");
Expected result:
----------------
Works: ???
Fails: ???
Actual result:
--------------
Works: ???
Fails: =?iso-8859-1?q?=3f=3f=3f?=
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31911&edit=1