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_mimeDecode » Bug #6096

decode_bodies can corrupt href links in emails

Details

Submitted2005-11-28 15:30 UTC
Fromcm at data-consult dot de
Assignedcipri
StatusClosed
PackageMail_mimeDecode
PHP Version4.3.10
OSdebian sarge
Roadmaps(Not assigned)

Comments

[2005-11-28 15:30 UTC] cm at data-consult dot de

Description:
------------
i've set decode_bodies true

i have this link in one of my emails:

<http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareIndex.jsp?lang=3D=
en&cc=3Dus&prodNameId=3D305121&prodTypeId=3D12169&prodSeriesId=3D339802&s=
wLang=3D8&taskId=3D135&swEnvOID=3D1094>

but i get something like this:
http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareIndex.jsp?lang=en&cc=us&prodNameId05121&prodTypeId^R169&prodSeriesId39802&swLang=8&taskId^S5&swEnvOID^P94

Expected result:
----------------
correctly decoded it should look like this(squirrelmail works here):

http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareIndex.jsp?lang=en&cc=us&prodNameId=305121&prodTypeId=12169&prodSeriesId=339802&swLang=8&taskId=135&swEnvOID=1094

Actual result:
--------------
but i get something like this:
http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareIndex.jsp?lang=en&cc=us&prodNameId05121&prodTypeId^R169&prodSeriesId39802&swLang=8&taskId^S5&swEnvOID^P94

[2005-12-02 12:33 UTC] cm at data-consult dot de

i used the fix from http://pear.php.net/bugs/bug.php?id=2100
jdpipe supplied.

// ADD THE FOLLOWING <<
if(function_exists('quoted_printable_decode')){
return quoted_printable_decode($input);
}
// << END

this part breaks the proper decoding of the url