From: conus at conus-computer dot de
Operating system: unix
PHP version: 5.3.1
PHP Bug Type: Mail related
Bug description: this function does not proberly work, need a workaround for
Emails
Description:
------------
This function doesn't work proberly like the versions before didn't.
It doesn't eleminate carriage return (chr13).
After that it eleminates all linefeed/carriage return combinations, which
are usually left over by sent emails, an adds afterwards to his own
linefeed Charakter an carriage return, that most emailclients don't
understand.
Reproduce code:
---------------
Here ist the workaround:
function X_quoted_printable_encode($String){
# replace carriage return (cr)
$String = str_replace(chr(13), "", $String);
# change line-feed in an unencoded Charakter.
# All origianl charakters of this kind will be lost, maybe use another
one, if you know a better one...
$String = str_replace(chr(10), "|", $String);
# ther original encoding
$String=quoted_printable_encode($String);
# restore line feeds
$String = str_replace("|", chr(10), $String);
# eleminat carriage return
$String = str_replace(chr(13), "", $String);
return $String;
}
hugh!
Expected result:
----------------
Content-Transfer-Encoding: quoted-printable
Email Adresse des Verfassers zur direkten Antwort: [email protected]
Sehr=
geehrte Frau Dr. med. Svea Keller,
Sehr geehrte Kolleginnen, sehr geehrt=
e Kollegen,
ich darf Sie herzlich zu einer gemeinsamen Fortbildungsveranst=
altung der BVA Bezirksverb=E4nde Niederbayern/Oberpfalz in Kooperation mit
=
dem Berufsverband der Neurologen am 3.3.2010 in Deggendorf einladen.
Das Ei=
nladungsschreiben sende ich Ihnen im Anhang zu.
Ich freue mich auf Ihr Kom=
men.
Mit freundlichen kollegialen Gr=FC=DFen
Dr. R. Keller
Email Adresse=
des Verfassers zur direkten Antwort: [email protected]
___________________=
_______________________________________________
Actual result:
--------------
Content-Transfer-Encoding: quoted-printable
=0AEmail Adresse des Verfassers zur direkten Antwort: [email protected]
=0A=
=0A=0ASehr geehrte Frau Dr. med. Svea Keller, =0A=0ASehr geehrte
Kolleginne=
n, sehr geehrte Kollegen,
ich darf Sie herzlich zu einer gemeinsamen Fortbildungsveranstaltung der
BV=
A Bezirksverb=E4nde Niederbayern/Oberpfalz in Kooperation mit dem
Berufsver=
band der Neurologen am 3.3.2010 in Deggendorf einladen.
Das Einladungsschreiben sende ich Ihnen im Anhang zu.
Ich freue mich auf Ihr Kommen.
Mit freundlichen kollegialen Gr=FC=DFen
Dr. R. Keller=0A=0AEmail Adresse des Verfassers zur direkten Antwort:
s...@au=
geninfo.de
=0A=0A__________________________________________________________=
________
--
Edit bug report at http://bugs.php.net/?id=50946&edit=1
--
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=50946&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=50946&r=trysnapshot53
Try a snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=50946&r=trysnapshot60
Fixed in SVN:
http://bugs.php.net/fix.php?id=50946&r=fixed
Fixed in SVN and need be documented:
http://bugs.php.net/fix.php?id=50946&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=50946&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=50946&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=50946&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=50946&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=50946&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=50946&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=50946&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=50946&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=50946&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50946&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=50946&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=50946&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=50946&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=50946&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=50946&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=50946&r=mysqlcfg