From 7400e723e130b41000f7026a19d826abfb1146e9 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Fri, 17 Aug 2018 14:58:45 +0200 Subject: [PATCH] * Mail: fix DASH DASH SPACE (-- ) signature removes lines which have only DASH DASH --- mail/inc/class.mail_compose.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail/inc/class.mail_compose.inc.php b/mail/inc/class.mail_compose.inc.php index 1689b9bc9d..7f99a1ed51 100644 --- a/mail/inc/class.mail_compose.inc.php +++ b/mail/inc/class.mail_compose.inc.php @@ -2310,7 +2310,7 @@ class mail_compose // Try to remove signatures from qouted parts to avoid multiple // signatures problem in reply (rfc3676#section-4.3). - if ($_mode != 'forward' && ($hasSignature || ($hasSignature = preg_match("/\G--(\s|\s[\r\n])$/",$value)))) + if ($_mode != 'forward' && ($hasSignature || ($hasSignature = preg_match("/^--\s[\r\n]$/",$value)))) { continue; }