Skip to content

Commit 3734df1

Browse files
authored
serendipity_sendMail: terminate headers with CRLF. (#853)
1 parent 7cd1eb6 commit 3734df1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

docs/NEWS

+3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ Version 2.6-alpha1 ()
2020

2121
* Block access to .inc php files via .htaccess
2222

23+
* Make serendipity_sendMail() standard compliant by using CRLF
24+
instead of LF to separate headers.
25+
2326
Version 2.5.0 (February 13th, 2024)
2427
------------------------------------------------------------------------
2528

include/functions.inc.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ function serendipity_sendMail($to, $subject, $message, $fromMail, $headers = NUL
564564
}
565565

566566
if (!isset($maildata['skip_native']) && !empty($maildata['to'])) {
567-
return mail($maildata['to'], $maildata['subject'], $maildata['message'], implode("\n", $maildata['headers']));
567+
return mail($maildata['to'], $maildata['subject'], $maildata['message'], implode("\r\n", $maildata['headers']));
568568
}
569569
}
570570

0 commit comments

Comments
 (0)