Skip to content

Commit

Permalink
serendipity_sendMail: terminate headers with CRLF. (#853)
Browse files Browse the repository at this point in the history
  • Loading branch information
th-h committed Aug 16, 2024
1 parent 7cd1eb6 commit 3734df1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions docs/NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ Version 2.6-alpha1 ()

* Block access to .inc php files via .htaccess

* Make serendipity_sendMail() standard compliant by using CRLF
instead of LF to separate headers.

Version 2.5.0 (February 13th, 2024)
------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion include/functions.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ function serendipity_sendMail($to, $subject, $message, $fromMail, $headers = NUL
}

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

Expand Down

0 comments on commit 3734df1

Please sign in to comment.