From 59a35d4741c5e94cf5f62388be7559d0bd4de1e4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Sat, 18 Jun 2016 15:45:23 +0200 Subject: [PATCH] Fix maximum length of a message id The previous maximum was chosen, because the author erroneously assumed the maximum length of the left hand side of a message id was 64 characters. In fact the maximum length is 255 characters. --- wcfsetup/install/files/lib/system/email/Email.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/system/email/Email.class.php b/wcfsetup/install/files/lib/system/email/Email.class.php index c3911e4071..e4eaf8b361 100644 --- a/wcfsetup/install/files/lib/system/email/Email.class.php +++ b/wcfsetup/install/files/lib/system/email/Email.class.php @@ -160,8 +160,8 @@ class Email { if (!preg_match('(^'.EmailGrammar::getGrammar('id-left').'$)', $messageID)) { throw new \DomainException("The given message id '".$messageID."' is invalid. Note: You must not specify the part right of the at sign (@)."); } - if (strlen($messageID) > 50) { - throw new \DomainException("The given message id '".$messageID."' is not allowed. The maximum allowed length is 50 bytes."); + if (strlen($messageID) > 200) { + throw new \DomainException("The given message id '".$messageID."' is not allowed. The maximum allowed length is 200 bytes."); } $this->messageID = $messageID; -- 2.20.1