From ba8d3c2be7e7f6d4f8ff62acdbf233e48cc8b688 Mon Sep 17 00:00:00 2001 From: alec Date: Mon, 20 Dec 2010 14:17:32 +0000 Subject: - small performance improvement git-svn-id: https://svn.roundcube.net/trunk@4354 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/steps/mail/func.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roundcubemail/program/steps') 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) -- cgit v1.2.3