PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Mail » Mail_Mime » Bug #5272

Mail_Mime: Odd string within HTML Body results in incomplete mime message

Details

Submitted2005-09-01 21:33 UTC
Fromspamtest at markheintz dot com
Assignedcipri
StatusBogus
PackageMail_Mime
PHP Version4.4.0
OSLinux
Roadmaps(Not assigned)

Comments

[2005-09-01 21:33 UTC] spamtest at markheintz dot com

Description:
------------
The provided html, when added to a mime message using setHTMLBody(), results in a mime message that ends prematurely. The problem line is the first of after the <body> tag. A combination of the preceeding whitespace (5 tabs followed by two spaces) and/or line length and/or the string "1xRTT" seems to be significant, as altering the line seems to correct the problem. This problem seems very obscure.

Mail_Mime version 1.3.1

Test script:
---------------
<html>
<head>
<title>test</title>
</head>
<body>
This handy phone has A-GPS position location. Other notable features include 1xRTT high-speed data, voice dialing, and PIM (organizer) features.
<p align="center"><a href="http://www.foobar.com/product_overview.php?cid=26" target="_blank">Read more on our website</a></p>
</body>
</html>

Expected result:
----------------
(...headers...)
(...text section...)

--=_de52d02c37b7a1d27ac20ca8e4b39d10
Content-Type: text/html; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<title>test</title>
</head>
<body>
This handy phone has A-GPS position location. Other notable features=
include high-speed data, voice dialing, and PIM (organizer) features.
<p align=3D"center"><a href=3D"http://www.foobar.com/product_overvie=
w.php?cid=3D26" target=3D"_blank">Read more on our website</a></p>
</body>
</html>

--=_de52d02c37b7a1d27ac20ca8e4b39d10--

Actual result:
--------------
(...headers...)
(...text section...)

--=_de52d02c37b7a1d27ac20ca8e4b39d10
Content-Type: text/html; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<title>test</title>
</head>
<body>
This handy phone has A-GPS position location. Other notable features=
include 1xRTT high-speed data, voice dialing, and PIM (organizer) features=