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

Michael Stucki michael at typo3.org
Mon Jul 20 11:04:35 CEST 2009


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,
> 
> 
> 


-- 
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/


More information about the TYPO3-team-core mailing list