php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31911 mb_decode_mimeheader is case-sensitive to hex escapes.
Submitted: 2005-02-10 10:32 UTC Modified: 2005-02-21 08:49 UTC
From: jazfresh at hotmail dot com Assigned: moriyoshi (profile)
Status: Closed Package: mbstring related
PHP Version: 5.0.3 OS: Linux Fedora Core
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jazfresh at hotmail dot com
New email:
PHP Version: OS:

 

 [2005-02-10 10:32 UTC] 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?=

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-21 08:49 UTC] moriyoshi@php.net
This bug has been fixed in CVS.

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/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 13:01:29 2024 UTC