* Mail: fix DASH DASH SPACE (-- ) signature removes lines which have only DASH DASH

This commit is contained in:
Hadi Nategh 2018-08-17 14:58:45 +02:00
parent b8b34defd4
commit 7400e723e1

View File

@ -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;
}