comparison vendor/pear/mail_mime/tests/test_Bug_11731.phpt @ 0:1e000243b222

vanilla 1.3.3 distro, I hope
author Charlie Root
date Thu, 04 Jan 2018 15:50:29 -0500
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:1e000243b222
1 --TEST--
2 Bug #11731 Full stops after soft line breaks are not encoded
3 --SKIPIF--
4 --FILE--
5 <?php
6 include("Mail/mime.php");
7 // Second full stop will be at the start of the second line after quoted-printable
8 // encoding (full stop '=2E' + 72 characters + line-continuation '=' = 76)
9 $text = '.123456789012345678901234567890123456789012345678901234567890123456789012.3456';
10 $params = Array(
11 'content_type' => 'text/plain',
12 'encoding' => 'quoted-printable',
13 );
14 $mimePart = new Mail_mimePart($text, $params);
15 $encoded = $mimePart->encode();
16 echo $encoded['body'];
17
18 --EXPECT--
19 =2E123456789012345678901234567890123456789012345678901234567890123456789012=
20 =2E3456