summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
Diffstat (limited to 'program')
-rw-r--r--program/include/rcube_message.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/rcube_message.php b/program/include/rcube_message.php
index 8ba607ce1..ba59bae07 100644
--- a/program/include/rcube_message.php
+++ b/program/include/rcube_message.php
@@ -621,7 +621,7 @@ class rcube_message
foreach (preg_split('/\r?\n/', trim($text)) as $line) {
// don't wrap quoted lines (to avoid wrapping problems)
if ($line[0] != '>')
- $line = rc_wordwrap(rtrim($line), $length - 1, " \r\n");
+ $line = rc_wordwrap(rtrim($line, "\r\n"), $length - 1, " \r\n");
$out .= $line . "\r\n";
}