From: foobar Date: Thu, 11 Jul 2002 02:41:52 +0000 (+0000) Subject: MFH: Fix for #16337 X-Git-Tag: php-4.2.3RC1~77 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=38155bfcb2bbf0910e2fa044c3e93cfbc37a5f93;p=php MFH: Fix for #16337 --- diff --git a/ext/standard/http_fopen_wrapper.c b/ext/standard/http_fopen_wrapper.c index a7877389e4..e71c524e70 100644 --- a/ext/standard/http_fopen_wrapper.c +++ b/ext/standard/http_fopen_wrapper.c @@ -135,6 +135,9 @@ FILE *php_fopen_url_wrap_http(const char *path, char *mode, int options, int *is /* send authorization header if we have user/pass */ if (resource->user != NULL && resource->pass != NULL) { + php_url_decode(resource->user, strlen(resource->user)); + php_url_decode(resource->pass, strlen(resource->pass)); + scratch = (char *) emalloc(strlen(resource->user) + strlen(resource->pass) + 2); if (!scratch) { php_url_free(resource);