Attached is a patch which fixes the bug described here:
http://bugs.php.net/bug.php?id=16337
Please check that last comment I posted there and
comment this patch then.. :)
--Jani
Index: http_fopen_wrapper.c
===================================================================
RCS file: /repository/php4/ext/standard/http_fopen_wrapper.c,v
retrieving revision 1.35
diff -u -r1.35 http_fopen_wrapper.c
--- http_fopen_wrapper.c 4 May 2002 17:16:28 -0000 1.35
+++ http_fopen_wrapper.c 10 Jul 2002 03:49:37 -0000
@@ -148,6 +148,10 @@
/* 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, ":");
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php