* Mail: fix newsnet-style signature removes lines which have only DASH DASH

This commit is contained in:
Hadi Nategh 2018-08-17 14:45:03 +02:00
parent 60e953292a
commit 03683fce69

View File

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