[ postfixadmin-Bugs-2046389 ] encode_header() does not break overlong header lines
Brought to you by:
christian_boltz,
gingerdog
From: SourceForge.net <no...@so...> - 2008-08-11 12:39:59
|
Bugs item #2046389, was opened at 2008-08-11 14:40 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=937964&aid=2046389&group_id=191583 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Core Group: SVN (please specify revision!) Status: Open Resolution: None Priority: 4 Private: No Submitted By: Christian Boltz (christian_boltz) Assigned to: Nobody/Anonymous (nobody) Summary: encode_header() does not break overlong header lines Initial Comment: 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.) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=937964&aid=2046389&group_id=191583 |