Skip to content

ext/standard: Encode trailing whitespace in quoted-printable filter - #26009

Open
iliaal wants to merge 1 commit into
php:PHP-8.4from
iliaal:fix/gh-25956-qp-trailing-whitespace
Open

iliaal wants to merge 1 commit into
php:PHP-8.4from
iliaal:fix/gh-25956-qp-trailing-whitespace

Conversation

@iliaal

@iliaal iliaal commented Dec 1, 2026

Copy link
Copy Markdown
Member

Flush pending bytes at stream close, encode trailing whitespace, and bound the lookahead by remaining input. The converter handles read and write filters. Based on GH-24463 by Sebastian Turner.

Fixes GH-25956

When input ends partway through a custom line break, flush pending
whitespace as encoded bytes without looking beyond the input window.
The converter serves read and write filters; the decoder and base64
converters have separate paths. Based on phpGH-24463 by Sebastian Turner.

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

1 participant