@ -659,8 +659,8 @@ class rcube_mime
$cutLength = $spacePos + 1;
}
else {
$subString = $string;
$cutLength = null;
$subString = $substr_func($string, 0, $breakPos, $charset);
$cutLength = $breakPos + 1;
@ -185,6 +185,10 @@ class Framework_Mime extends PHPUnit_Framework_TestCase
array("----------------------------------------------------------------------------------------\nabc def123456789012345", 76),
"----------------------------------------------------------------------------------------\nabc def123456789012345",
),
array(
array("-------\nabc def", 5),
"-------\nabc\ndef",
);
foreach ($samples as $sample) {