diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-04-22 10:22:16 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-04-22 10:22:16 +0200 |
commit | 1041aa46da9fe177d33aae1f1bf4fc1a1eb79529 (patch) | |
tree | a86ba5611d11ac9d9f582fe527c4eacee2239950 /program | |
parent | 7439d3ee14ea8b9e61f656ab092b8d83c72e0dc9 (diff) |
Fix another text wrapping issue
Diffstat (limited to 'program')
-rw-r--r-- | program/lib/Roundcube/rcube_mime.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/program/lib/Roundcube/rcube_mime.php b/program/lib/Roundcube/rcube_mime.php index 1e4fac84a..96296a57c 100644 --- a/program/lib/Roundcube/rcube_mime.php +++ b/program/lib/Roundcube/rcube_mime.php @@ -622,7 +622,7 @@ class rcube_mime $subString = $substr_func($string, 0, $width, $charset); // last line - if ($subString === $string) { + if ($breakPos === false && $subString === $string) { $cutLength = null; } else { @@ -652,7 +652,7 @@ class rcube_mime else if ($cut === false) { $spacePos = $strpos_func($string, ' ', 0, $charset); - if ($spacePos !== false) { + if ($spacePos !== false && $spacePos < $breakPos) { $subString = $substr_func($string, 0, $spacePos, $charset); $cutLength = $spacePos + 1; } |