]> granicus.if.org Git - php/commitdiff
MFH: Fix for #16337
authorfoobar <sniper@php.net>
Thu, 11 Jul 2002 02:41:52 +0000 (02:41 +0000)
committerfoobar <sniper@php.net>
Thu, 11 Jul 2002 02:41:52 +0000 (02:41 +0000)
ext/standard/http_fopen_wrapper.c

index a7877389e46f059aa8485ca13114ddac5201cdba..e71c524e70e36db0211faeb2808961174be2dd2c 100644 (file)
@@ -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);