Home » Mail » Mail_mimeDecode » Bug #6096
decode_bodies can corrupt href links in emails
Details
| Submitted | 2005-11-28 15:30 UTC |
|---|---|
| From | cm at data-consult dot de |
| Assigned | cipri |
| Status | Closed |
| Package | Mail_mimeDecode |
| PHP Version | 4.3.10 |
| OS | debian 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