From: Tim Düsterhus Date: Sat, 18 Jun 2016 13:45:23 +0000 (+0200) Subject: Fix maximum length of a message id X-Git-Tag: 3.0.0_Beta_1~1398 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=59a35d4741c5e94cf5f62388be7559d0bd4de1e4;p=GitHub%2FWoltLab%2FWCF.git 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. --- 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;