Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

serendipity_sendMail: terminate headers with CRLF. #853

Merged
merged 1 commit into from
Aug 16, 2024

Conversation

th-h
Copy link
Member

@th-h th-h commented Aug 16, 2024

serendipity_sendMail() will concatenate additional headers to a string separated with LF (\n). That is not standard compliant, as RFC 5322 demands CRLF (\r\n).

This has real life implications at least on PHP 8.2.20 with Exim 4.96, as all additional headers are appended to one single long header line, losing encoding information and more.

Change LF to CRLF here.

Fixes #852.

@garvinhicking
Copy link
Member

Great, looks plausible.
Could you add an entry to docs/NEWS alongside this change?

serendipity_sendMail() will concatenate additional headers
to a string separated with LF (\n). That is not standard
compliant, as RFC 5322 demands CRLF (\r\n).

This has real life implications at least on PHP 8.2.20
with Exim 4.96, as all additional headers are appended
to one single long header line, losing encoding information
and more.

Change LF to CRLF here.

Fixes s9y#852.

Signed-off-by: Thomas Hochstein <[email protected]>
@th-h
Copy link
Member Author

th-h commented Aug 16, 2024

Yeah, sorry. I'm a bit rusty.

@garvinhicking garvinhicking merged commit 3734df1 into s9y:master Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Comment notification mails unreadable due to missing encoding
2 participants