From 38155bfcb2bbf0910e2fa044c3e93cfbc37a5f93 Mon Sep 17 00:00:00 2001 From: foobar Date: Thu, 11 Jul 2002 02:41:52 +0000 Subject: [PATCH] MFH: Fix for #16337 --- ext/standard/http_fopen_wrapper.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.50.1