|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-02-21 08:49 UTC] moriyoshi@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Jan 08 01:00:01 2026 UTC |
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?=