cvs: php4(PHP_4_2_0) /ext/standard http_fopen_wrapper.c
| From: | Jani Taskinen | Date: | Thu, 11 Jul 2002 02:41:52 +0000 |
| Subject: | cvs: php4(PHP_4_2_0) /ext/standard http_fopen_wrapper.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-12773@lists.php.net to get a copy of this message | ||
sniper Wed Jul 10 22:41:52 2002 EDT
Modified files: (Branch: PHP_4_2_0)
/php4/ext/standard http_fopen_wrapper.c
Log:
MFH: Fix for #16337
Index: php4/ext/standard/http_fopen_wrapper.c
diff -u php4/ext/standard/http_fopen_wrapper.c:1.23.2.1
php4/ext/standard/http_fopen_wrapper.c:1.23.2.2
--- php4/ext/standard/http_fopen_wrapper.c:1.23.2.1 Thu Mar 21 16:53:26 2002
+++ php4/ext/standard/http_fopen_wrapper.c Wed Jul 10 22:41:52 2002
@@ -17,7 +17,7 @@
| Hartmut Holzgraefe <hholzgra@php.net> |
+----------------------------------------------------------------------+
*/
-/* $Id: http_fopen_wrapper.c,v 1.23.2.1 2002/03/21 21:53:26 rasmus Exp $ */
+/* $Id: http_fopen_wrapper.c,v 1.23.2.2 2002/07/11 02:41:52 sniper Exp $ */
#include "php.h"
#include "php_globals.h"
@@ -135,6 +135,9 @@
/* 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);