Aleksander Machniak
2013-05-03 c067bb55df07703545102df7b466aff482361eb8
Fix another text wrap issue (added test case)
2 files modified
8 ■■■■ changed files
program/lib/Roundcube/rcube_mime.php 4 ●●●● patch | view | raw | blame | history
tests/Framework/Mime.php 4 ●●●● patch | view | raw | blame | history
program/lib/Roundcube/rcube_mime.php
@@ -659,8 +659,8 @@
                                $cutLength = $spacePos + 1;
                            }
                            else {
                                $subString = $string;
                                $cutLength = null;
                                $subString = $substr_func($string, 0, $breakPos, $charset);
                                $cutLength = $breakPos + 1;
                            }
                        }
                        else {
tests/Framework/Mime.php
@@ -185,6 +185,10 @@
                array("----------------------------------------------------------------------------------------\nabc                        def123456789012345", 76),
                "----------------------------------------------------------------------------------------\nabc                        def123456789012345",
            ),
            array(
                array("-------\nabc def", 5),
                "-------\nabc\ndef",
            ),
        );
        foreach ($samples as $sample) {