From: Hypolite Petovan Date: Sat, 25 Jun 2022 09:35:24 +0000 (-0400) Subject: Fix off-by-one error in Message ID header count check in Util\Emailer X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a2afb101cdd4a86e1fb7ed6d04a26ffc436fbcee;p=friendica.git Fix off-by-one error in Message ID header count check in Util\Emailer --- diff --git a/src/Util/Emailer.php b/src/Util/Emailer.php index 1341aaf33e..d045698233 100644 --- a/src/Util/Emailer.php +++ b/src/Util/Emailer.php @@ -141,7 +141,7 @@ class Emailer $countMessageId += count($value); } } - if ($countMessageId > 0) { + if ($countMessageId > 1) { $this->logger->warning('More than one Message-ID found - RFC violation', ['email' => $email]); }