Browse Source

Fixed bug: #16637, username/password needs to be urlencoded.

experimental/new_apache_hooks
foobar 24 years ago
parent
commit
c8f5edec93
  1. 4
      ext/standard/http_fopen_wrapper.c

4
ext/standard/http_fopen_wrapper.c

@ -148,6 +148,10 @@ php_stream *php_stream_url_wrap_http(php_stream_wrapper *wrapper, char *path, ch
/* authz header if it was specified */
if (resource->user && resource->pass) {
/* decode the strings first */
php_url_decode(resource->user, strlen(resource->user));
php_url_decode(resource->pass, strlen(resource->pass));
/* scratch is large enough, since it was made large enough for the whole URL */
strcpy(scratch, resource->user);
strcat(scratch, ":");

Loading…
Cancel
Save