From 03683fce69e2dbe14d28c33e438cf798b73f6a94 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Fri, 17 Aug 2018 14:45:03 +0200 Subject: [PATCH] * Mail: fix newsnet-style 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 9be65df58a..fb69aa1cba 100644 --- a/mail/inc/class.mail_compose.inc.php +++ b/mail/inc/class.mail_compose.inc.php @@ -2345,7 +2345,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|\s[\r\n])$/",$value)))) { continue; }