From 13e0a6556ffa9e0b3257f08d78042a8133055ea3 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Thu, 19 Feb 2015 16:39:48 +0100 Subject: Fix handling of some improper constructs in format=flowed text as per the RFC3676[4.5] (#1490284) --- program/lib/Roundcube/rcube_mime.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'program/lib/Roundcube') diff --git a/program/lib/Roundcube/rcube_mime.php b/program/lib/Roundcube/rcube_mime.php index 3f2fcc330..e9cab6107 100644 --- a/program/lib/Roundcube/rcube_mime.php +++ b/program/lib/Roundcube/rcube_mime.php @@ -520,7 +520,7 @@ class rcube_mime // remove space-stuffing $line = preg_replace('/^ /', '', $line); - if (isset($text[$last]) && $line + if (isset($text[$last]) && $line && !$q_level && $text[$last] != '-- ' && $text[$last][strlen($text[$last])-1] == ' ' ) { -- cgit v1.2.3