Merge pull request #11686 from MrPetovan/bug/11636-emailer-message-id-check

Fix off-by-one error in Message ID header count check in Util\Emailer
This commit is contained in:
Philipp 2022-06-25 11:58:23 +02:00 committed by GitHub
commit aa596df098
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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]);
}