SVN r442 (history: encode_header() is mostly from r1 and was changed slightly in r21)
encode_header() in functions.inc.php needs some fixes:
- it does not add linebreaks in overlong headers, but "just" inserts end-of-encoding markers
- it ends the encoding in the middle of a word if it hits the length limit, so just adding \n\t won't work
Oh, and the function is not really easy to understand, rewriting it from scratch in a simpler way might be an option.
See also http://php.net/mb-encode-mimeheader - the comments include some functions that do something like encode_header.
(Using PHP's mb_encode_header is not an option - it adds linebreaks in the middle of a word.)
Log in to post a comment.