PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Mail » Mail_Mime » Bug #4015

qb bug

Details

Submitted2005-03-31 09:46 UTC
Fromromthxie at sina dot com
StatusNo Feedback
PackageMail_Mime
PHP Version4.3.9
OSunix/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