Home » Mail » Mail_Mime » Bug #4015
qb bug
Details
| Submitted | 2005-03-31 09:46 UTC |
|---|---|
| From | romthxie at sina dot com |
| Status | No Feedback |
| Package | Mail_Mime |
| PHP Version | 4.3.9 |
| OS | unix/freebsd/windows |
| Roadmaps | (Not assigned) |
Comments
[2005-03-31 09:46 UTC] romthxie at sina dot com
Description:
------------
find a bug in function _decodeHeader($input)
advice:
can use $text = quoted_printable_decode($text);
replace the "Reproduce code"
Reproduce code:
---------------
$text = str_replace('_', ' ', $text);
preg_match_all('/=([a-f0-9]{2})/i', $text, $matches);
foreach($matches[1] as $value)
$text = str_replace('='.$value, chr(hexdec($value)), $text);
break;
Expected result:
----------------
see here:http://blog.sina.com.cn/blog/1059180990/3f21d1be0100000r
Actual result:
--------------
@see http://blog.sina.com.cn/blog/1059180990/3f21d1be0100000r