summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-05-03 08:24:26 +0200
committerAleksander Machniak <alec@alec.pl>2013-05-03 08:26:28 +0200
commitc067bb55df07703545102df7b466aff482361eb8 (patch)
tree3c5d71db92b3583abdd93b892ea709734ac4ca38 /program
parentfedbd431c2c31aaa5fba70c3dc84965a714d4a10 (diff)
Fix another text wrap issue (added test case)
Diffstat (limited to 'program')
-rw-r--r--program/lib/Roundcube/rcube_mime.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/lib/Roundcube/rcube_mime.php b/program/lib/Roundcube/rcube_mime.php
index 0a4bfbddb..53724cbba 100644
--- a/program/lib/Roundcube/rcube_mime.php
+++ b/program/lib/Roundcube/rcube_mime.php
@@ -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;
}
}
else {