From: Tim Düsterhus Date: Sun, 31 Jul 2016 12:58:52 +0000 (+0200) Subject: Avoid potential issue with overlong lines in Emails X-Git-Tag: 3.0.0_Beta_1~841 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fdba0d8006d68004de486707066e6fc846f846b4;p=GitHub%2FWoltLab%2FWCF.git Avoid potential issue with overlong lines in Emails --- diff --git a/wcfsetup/install/files/lib/system/email/Email.class.php b/wcfsetup/install/files/lib/system/email/Email.class.php index 4b50aa39bc..795139243a 100644 --- a/wcfsetup/install/files/lib/system/email/Email.class.php +++ b/wcfsetup/install/files/lib/system/email/Email.class.php @@ -389,10 +389,10 @@ class Email { $headers[] = ['date', $this->getDate()->format(\DateTime::RFC2822)]; $headers[] = ['message-id', $this->getMessageID()]; if ($this->getReferences()) { - $headers[] = ['references', implode(' ', $this->getReferences())]; + $headers[] = ['references', implode("\r\n ", $this->getReferences())]; } if ($this->getInReplyTo()) { - $headers[] = ['in-reply-to', implode(' ', $this->getInReplyTo())]; + $headers[] = ['in-reply-to', implode("\r\n ", $this->getInReplyTo())]; } $headers[] = ['mime-version', '1.0'];