Skip to content

Fix SFTP path corruption for root-path URLs - #107

Open
transcendtient wants to merge 1 commit into
php:masterfrom
transcendtient:patch-1
Open

Fix SFTP path corruption for root-path URLs#107
transcendtient wants to merge 1 commit into
php:masterfrom
transcendtient:patch-1

Conversation

@transcendtient

Copy link
Copy Markdown

strstr() can match resource->path against the "://" scheme separator instead of the actual path when the path is short (e.g. "/"), corrupting ssh2.sftp:/// URLs used for directory listings. Only run the search when # or ? is present, since that's the only case it's needed for.

See #99

strstr() can match resource->path against the "://" scheme separator
instead of the actual path when the path is short (e.g. "/"), corrupting
ssh2.sftp://<id>/ URLs used for directory listings. Only run the search
when # or ? is present, since that's the only case it's needed for.

See php#99
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.

1 participant