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

Oliver Hader oliver at typo3.org
Sun Aug 2 10:12:19 CEST 2009


FYI: Committed to SVN Trunk (rev. 5749)

olly


Ivan Kartolo schrieb:
> 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,
-- 
Oliver Hader
TYPO3 Release Manager 4.3


More information about the TYPO3-team-core mailing list