0
|
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
|