|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-11-19 07:08 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 06:00:02 2025 UTC |
Description: ------------ imap_8bit() is broken when it comes to spaces at the end of a line. According to RFC 2045 [6.7(3)]: Octets with values of 9 and 32 MAY be represented as US-ASCII TAB (HT) and SPACE characters, respectively, but MUST NOT be so represented at the end of an encoded line. imap_8bit does nothing to the following line: foo<SPACE> the correct encoding would be as follows: foo=20 Reproduce code: --------------- echo imap_8bit('foo '); Expected result: ---------------- foo=20 Actual result: -------------- foo