Skip to content

php_ftp_fopen_connect(): Confirm no extra commands are smuggled in - #23856

Open
DanielEScherzer wants to merge 1 commit into
php:PHP-8.6from
DanielEScherzer:ftp-no-extra-commands
Open

DanielEScherzer wants to merge 1 commit into
php:PHP-8.6from
DanielEScherzer:ftp-no-extra-commands

Conversation

@DanielEScherzer

Copy link
Copy Markdown
Member

Add a debug-only assertion that the parsed resource path has no remaining "\r\n" substrings which would separate commands. Intended as a hardening measure - at the moment all supported parsing backends handle included "\r\n" properly.

Add a debug-only assertion that the parsed resource path has no remaining
"\r\n" substrings which would separate commands. Intended as a hardening
measure - at the moment all supported parsing backends handle included "\r\n"
properly.
@DanielEScherzer
DanielEScherzer changed the base branch from master to PHP-8.6 September 23, 2026 01:56
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