]> git.mxchange.org Git - friendica.git/commitdiff
Fix off-by-one error in Message ID header count check in Util\Emailer
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 25 Jun 2022 09:35:24 +0000 (05:35 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 25 Jun 2022 09:35:24 +0000 (05:35 -0400)
src/Util/Emailer.php

index 1341aaf33e42b0de3fd933b3767a04ff4dac4564..d04569823366e5dbfa8b55b76691e640aeabc404 100644 (file)
@@ -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]);
                }