summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-04-02 20:15:59 +0000
committerDries Buytaert <dries@buytaert.net>2008-04-02 20:15:59 +0000
commita65fd88dcbb32af9f23255ede9d86d8e242ed928 (patch)
tree2f2a4142b108f3593f73d88ebc56ca21d5a941da
parenta4aac756688f5e27e671a8a3fd7b38c008d12a6f (diff)
downloadbrdo-a65fd88dcbb32af9f23255ede9d86d8e242ed928.tar.gz
brdo-a65fd88dcbb32af9f23255ede9d86d8e242ed928.tar.bz2
- Patch #234403 by Gabor, Bevan and me: drupal_mail_send() had problems with linebreaks headers.
-rw-r--r--includes/mail.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/includes/mail.inc b/includes/mail.inc
index 3d6bf659a..3f943652b 100644
--- a/includes/mail.inc
+++ b/includes/mail.inc
@@ -184,12 +184,12 @@ function drupal_mail_send($message) {
return mail(
$message['to'],
mime_header_encode($message['subject']),
- // Note: e-mail uses CRLF for line-endings, but PHP's API requires LF
- // for the message body.
+ // Note: e-mail uses CRLF for line-endings, but PHP's API requires LF.
// They will appear correctly in the actual e-mail that is sent.
str_replace("\r", '', $message['body']),
- // For headers, PHP's API requires that we use CRLF normally.
- join("\r\n", $mimeheaders)
+ // For headers, PHP's API suggests that we use CRLF normally,
+ // but some MTAs incorrecly replace LF with CRLF. See #234403.
+ join("\n", $mimeheaders)
);
}
}