summaryrefslogtreecommitdiff
path: root/program/steps/mail/func.inc
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-11-11 12:27:25 +0100
committerAleksander Machniak <alec@alec.pl>2012-11-11 12:28:52 +0100
commit08c39127d3f603501fe628fcadd403a92fb4c8dc (patch)
tree339ed4b6a4584a6a0a3c75247ea94f3913a74443 /program/steps/mail/func.inc
parentf6f1fd0251bd928c741938da8fce82c8ee05c18c (diff)
Fix bug where leading blanks were stripped from quoted lines (#1488795)
Conflicts: CHANGELOG
Diffstat (limited to 'program/steps/mail/func.inc')
-rw-r--r--program/steps/mail/func.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/program/steps/mail/func.inc b/program/steps/mail/func.inc
index 2c6db01eb..efca65b74 100644
--- a/program/steps/mail/func.inc
+++ b/program/steps/mail/func.inc
@@ -789,8 +789,8 @@ function rcmail_plain_body($body, $flowed=false)
// find/mark quoted lines...
for ($n=0, $cnt=count($body); $n < $cnt; $n++) {
- if ($body[$n][0] == '>' && preg_match('/^(>+\s*)+/', $body[$n], $regs)) {
- $q = strlen(preg_replace('/\s/', '', $regs[0]));
+ if ($body[$n][0] == '>' && preg_match('/^(>+ {0,1})+/', $body[$n], $regs)) {
+ $q = substr_count($regs[0], '>');
$body[$n] = substr($body[$n], strlen($regs[0]));
if ($q > $quote_level) {