Mercurial > hg > rc1
view vendor/pear/mail_mime/tests/test_Bug_11731.phpt @ 4:888e774ee983
libcalendar plugin as distributed
author | Charlie Root |
---|---|
date | Sat, 13 Jan 2018 08:57:56 -0500 |
parents | 1e000243b222 |
children |
line wrap: on
line source
--TEST-- Bug #11731 Full stops after soft line breaks are not encoded --SKIPIF-- --FILE-- <?php include("Mail/mime.php"); // Second full stop will be at the start of the second line after quoted-printable // encoding (full stop '=2E' + 72 characters + line-continuation '=' = 76) $text = '.123456789012345678901234567890123456789012345678901234567890123456789012.3456'; $params = Array( 'content_type' => 'text/plain', 'encoding' => 'quoted-printable', ); $mimePart = new Mail_mimePart($text, $params); $encoded = $mimePart->encode(); echo $encoded['body']; --EXPECT-- =2E123456789012345678901234567890123456789012345678901234567890123456789012= =2E3456