Avoid potential issue with overlong lines in Emails
authorTim Düsterhus <duesterhus@woltlab.com>
Sun, 31 Jul 2016 12:58:52 +0000 (14:58 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Sun, 31 Jul 2016 13:59:51 +0000 (15:59 +0200)
wcfsetup/install/files/lib/system/email/Email.class.php

index 4b50aa39bca6deab8ea33840354fa23fca3352c2..795139243a2b632d32f30703a8014b156459b1c1 100644 (file)
@@ -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'];