Bug #20232
closedwrong encoded email header (t3lib_div::encodeHeader)
0%
Description
the function t3lib_div::quoted_printable encodes all non ASCII character in their hex value correctly. But for email subject there must be no question mark (?) ASCII 63, because question mark is used to separate between charset, encoding and the encoded text [1].
The attached patch search for question mark, and replace with it's hex value.
[1] http://tools.ietf.org/html/rfc1342
send an email (with direct_mail), which having question mark in the subject.
See http://bugs.typo3.org/view.php?id=10678
Patch is made against 4.2.6
(issue imported from #M10769)
Files
Updated by Ivan Dharma Kartolo over 15 years ago
new patch files added.
10769-trunk.diff is made against the trunk of TYPO3 4.x.
10769.diff is made against the branch of TYPO3 4.2.x
Updated by Oliver Hader over 15 years ago
Thanks for your patch!
You could just use '=3F' for the question mark instead of the sprinftf() thingy.
Would you like to post your patch to the TYPO3 Core Mailing List (without the patch-comment, but the hint to that RFC)?
Thanks in advance!
Updated by Ivan Dharma Kartolo over 15 years ago
added Version 2 of the patch which uses the existing str_replace.
Updated by Oliver Hader over 15 years ago
Committed to SVN Trunk (rev. 5749)
Committed to TYPO3_4-2 (rev. 5750)
Committed Unit Test to SVN Trunk (rev. 5751)