summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps/mail/func.inc
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-12-20 14:17:32 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-12-20 14:17:32 +0000
commitba8d3c2be7e7f6d4f8ff62acdbf233e48cc8b688 (patch)
tree16fcc2c6e4b732df1406b1f7388a0325154d13b3 /roundcubemail/program/steps/mail/func.inc
parent051d01812ded458c63ef639f22ffb76a2b6f2743 (diff)
- small performance improvement
git-svn-id: https://svn.roundcube.net/trunk@4354 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/mail/func.inc')
-rw-r--r--roundcubemail/program/steps/mail/func.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/program/steps/mail/func.inc b/roundcubemail/program/steps/mail/func.inc
index 750cf6f61..280dd430c 100644
--- a/roundcubemail/program/steps/mail/func.inc
+++ b/roundcubemail/program/steps/mail/func.inc
@@ -735,7 +735,7 @@ function rcmail_plain_body($body, $flowed=false)
// find/mark quoted lines...
for ($n=0, $cnt=count($a_lines); $n < $cnt; $n++) {
if ($a_lines[$n][0] == '>' && preg_match('/^(>+\s*)+/', $a_lines[$n], $regs)) {
- $q = strlen(preg_replace('/\s/', '', $regs[0]));
+ $q = strlen(rtrim($regs[0]));
$a_lines[$n] = substr($a_lines[$n], strlen($regs[0]));
if ($q > $quote_level)