summaryrefslogtreecommitdiff
path: root/roundcubemail/program/include
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-04-08 07:08:30 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2011-04-08 07:08:30 +0000
commitba26a9d52dc036eee3310f129863103a9f54ee9b (patch)
tree3c7918e01e2ffa1ea83cb341675d27f0f5b184ba /roundcubemail/program/include
parentdaf588567fea95c414a2d67bd8c62b4aa34e104d (diff)
- Improve space-stuffing handling in format=flowed messages (#1487861)
git-svn-id: https://svn.roundcube.net/trunk@4636 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include')
-rw-r--r--roundcubemail/program/include/rcube_message.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/roundcubemail/program/include/rcube_message.php b/roundcubemail/program/include/rcube_message.php
index a8c51cc4e..4f9a2f230 100644
--- a/roundcubemail/program/include/rcube_message.php
+++ b/roundcubemail/program/include/rcube_message.php
@@ -726,7 +726,9 @@ class rcube_message
$line = $prefix . rc_wordwrap($line, $length - $level - 2, " \r\n$prefix ");
}
else if ($line) {
- $line = ' ' . rc_wordwrap(rtrim($line), $length - 2, " \r\n ");
+ $line = rc_wordwrap(rtrim($line), $length - 2, " \r\n");
+ // space-stuffing
+ $line = preg_replace('/(^|\r\n)(From| |>)/', '\\1 \\2', $line);
}
$text[$idx] = $line;