From fdba0d8006d68004de486707066e6fc846f846b4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Sun, 31 Jul 2016 14:58:52 +0200 Subject: [PATCH] Avoid potential issue with overlong lines in Emails --- 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 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']; -- 2.20.1