-
Notifications
You must be signed in to change notification settings - Fork 8k
Remove requirement for authority portion of user stream wrapper URIs #2331
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
Conversation
main/streams/streams.c
Outdated
| PHP_STRLCPY(wrapper_name, protocol, sizeof(wrapper_name), n); | ||
|
|
||
| php_error_docref(NULL, E_WARNING, "Unable to find the wrapper \"%s\" - did you forget to enable it when you configured PHP?", wrapper_name); | ||
| if (path[n+1] == '/' && path[n+2] == '/') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess to use strncmp will be better here
main/streams/streams.c
Outdated
| efree(tmp); | ||
| } | ||
|
|
||
| if (wrapper && wrapper->is_uri == 0 && path[n+1] != '/' && path[n+2] != '/') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for review, I'll use strncmp once then before if statement.
|
Just a gentle reminder that the respective RFC is still in draft status. :) |
|
Thanks @cmb69 for friendly reminder I almost forgot about that RFC. Will verify next week if I can revive this. |
|
I decided to withdraw work on this RFC. |
This patch is for PHP RFC: Ommit double-slash in user Stream Wrapper URI.
This patch enable and adjust the code, add phpt.