Skip to content

Fix GH-24458: quoted_printable_encode does not encode trailing space - #24459

Open
lazerg wants to merge 1 commit into
php:PHP-8.4from
lazerg:fix/gh-24458-qp-trailing-space
Open

lazerg wants to merge 1 commit into
php:PHP-8.4from
lazerg:fix/gh-24458-qp-trailing-space

Conversation

@lazerg

@lazerg lazerg commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

php_quot_print_encode() already encodes a space when a CRLF follows it, but not when the space is the last byte of the input. The end of the input is also the end of an encoded line, so RFC 2045 requires =20 there too. The check now covers both cases.

Fixes GH-24458

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant