anewt-developers team mailing list archive
-
anewt-developers team
-
Mailing list archive
-
Message #00286
[Branch ~uws/anewt/anewt.uws] Rev 1798: [mail] Use proper newlines in mail messages
------------------------------------------------------------
revno: 1798
committer: Wouter Bolsterlee <uws@xxxxxxxxx>
branch nick: anewt
timestamp: Tue 2010-10-05 23:18:55 +0200
message:
[mail] Use proper newlines in mail messages
modified:
mail/mailmessage.lib.php
--
lp:anewt
https://code.launchpad.net/~uws/anewt/anewt.uws
Your team Anewt developers is subscribed to branch lp:anewt.
To unsubscribe from this branch go to https://code.launchpad.net/~uws/anewt/anewt.uws/+edit-subscription
=== modified file 'mail/mailmessage.lib.php'
--- mail/mailmessage.lib.php 2009-08-02 16:32:09 +0000
+++ mail/mailmessage.lib.php 2010-10-05 21:18:55 +0000
@@ -302,7 +302,10 @@
if ($this->has_header('Cc')) $headers[] = sprintf('Cc: %s', $this->get_header('Cc'));
if ($this->has_header('Bcc')) $headers[] = sprintf('Bcc: %s', $this->get_header('Bcc'));
- $message = implode("\r\n", $headers) . "\n\n" . $body;
+ $message = join('', array(
+ implode(CRLF, $headers),
+ CRLF, CRLF,
+ $body));
/* Try to use the sendmail binary directly */
if (is_executable('/usr/sbin/sendmail'))