|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-03-20 21:49 UTC] tony2001@php.net
[2006-03-21 09:27 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 04:00:01 2025 UTC |
Description: ------------ iconv_mime_decode doesn't recognize lower-case encoding tokens ('b' or 'q'). These are acceptible according to the MIME RFC (http://www.ietf.org/rfc/rfc2047.txt). Here is a fix. Edit file: /ext/iconv/iconv.c Line: 1398 Change case 'B': to case 'B': case 'b': Line 1403 Change case 'Q': to case 'Q': case 'q': Reproduce code: --------------- $string = '=?UTF-8?b?VGhpcyBpcyBhbiBlbmNvZGVkIHN0cmluZyE=?='; echo iconv_mime_decode($string,1); Expected result: ---------------- This is an encoded string! Actual result: -------------- Warning: iconv_mime_decode() [function.iconv-mime-decode]: Malformed string