| 1 |
lars |
1 |
--TEST--
|
|
|
2 |
Bug #11731 Full stops after soft line breaks are not encoded
|
|
|
3 |
--SKIPIF--
|
|
|
4 |
--FILE--
|
|
|
5 |
<?php
|
|
|
6 |
error_reporting(E_ALL); // ignore E_STRICT
|
|
|
7 |
include("Mail/mime.php");
|
|
|
8 |
// Second full stop will be at the start of the second line after quoted-printable
|
|
|
9 |
// encoding (full stop '=2E' + 72 characters + line-continuation '=' = 76)
|
|
|
10 |
$text = '.123456789012345678901234567890123456789012345678901234567890123456789012.3456';
|
|
|
11 |
$params = Array(
|
|
|
12 |
'content_type' => 'text/plain',
|
|
|
13 |
'encoding' => 'quoted-printable',
|
|
|
14 |
);
|
|
|
15 |
$mimePart =& new Mail_mimePart($text, $params);
|
|
|
16 |
$encoded = $mimePart->encode();
|
|
|
17 |
echo $encoded['body'];
|
|
|
18 |
|
|
|
19 |
--EXPECT--
|
|
|
20 |
=2E123456789012345678901234567890123456789012345678901234567890123456789012=
|
|
|
21 |
=2E3456
|