Restrict Usenet-style signature detection with ending of carriage return or new line.

This commit is contained in:
Hadi Nategh 2018-08-17 14:52:32 +02:00
parent 03683fce69
commit 1cbc5779f0

View File

@ -2345,7 +2345,7 @@ class mail_compose
// Try to remove signatures from qouted parts to avoid multiple // Try to remove signatures from qouted parts to avoid multiple
// signatures problem in reply (rfc3676#section-4.3). // signatures problem in reply (rfc3676#section-4.3).
if ($_mode != 'forward' && ($hasSignature || ($hasSignature = preg_match("/^--(\s|\s[\r\n])$/",$value)))) if ($_mode != 'forward' && ($hasSignature || ($hasSignature = preg_match("/^--\s[\r\n]$/",$value))))
{ {
continue; continue;
} }