[TYPO3-core] RFC #10769: Bug: wrong encoded email header (t3lib_div::encodeHeader)

Ivan Kartolo ivan.kartolo at dkd.de
Mon Jul 20 23:44:10 CEST 2009


Hi Michael,

you're right. see the attached patch.

Thanks.

Ivan

Michael Stucki schrieb:
> Hi Ivan,
> 
> there is already a str_replace() call just a few lines above.
> I suggest that you use this one and replace $search and $replace with
> arrays for both uses.
> 
> - michael
> 
> Ivan Kartolo schrieb:
>> This is an SVN patch request.
>>
>> Type: Bugfix
>>
>> Bugtracker references:
>> http://bugs.typo3.org/view.php?id=10769
>>
>> Branches:
>> trunk
>>
>> Problem:
>> if the string, which is passed to this function, has a question mark, it
>> will not be properly encoded. Since the the question mark is used as a
>> separator for charset and text encoding, the additional question mark in
>> the string will break the encoded header.
>>
>> Solution:
>> Replacing question mark with its hex value.
>>
>> Notes:
>> related bug: http://bugs.typo3.org/view.php?id=10678
>>
>>
>> Thanks,
>>
>>
>>
> 
> 


-- 
Ivan Kartolo
Certified TYPO3 Integrator

Want to support the development of Direct Mail?
- Report some bugs (http://bugs.typo3.org)
- Send me patch
- Send me some donation per PayPal to ivan.kartolo(at)gmail(dot)com


More information about the TYPO3-team-core mailing list