cvs: php4 /ext/standard http_fopen_wrapper.c
| From: | Rasmus Lerdorf | Date: | Sat, 14 Jul 2001 15:08:36 +0000 |
| Subject: | cvs: php4 /ext/standard http_fopen_wrapper.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-6224@lists.php.net to get a copy of this message | ||
rasmus Sat Jul 14 11:08:36 2001 EDT
Modified files:
/php4/ext/standard http_fopen_wrapper.c
Log:
Fix for bug #11632
Index: php4/ext/standard/http_fopen_wrapper.c
diff -u php4/ext/standard/http_fopen_wrapper.c:1.10 php4/ext/standard/http_fopen_wrapper.c:1.11
--- php4/ext/standard/http_fopen_wrapper.c:1.10 Mon Jun 11 11:14:04 2001
+++ php4/ext/standard/http_fopen_wrapper.c Sat Jul 14 11:08:36 2001
@@ -17,7 +17,7 @@
| Hartmut Holzgraefe <hholzgra@php.net> |
+----------------------------------------------------------------------+
*/
-/* $Id: http_fopen_wrapper.c,v 1.10 2001/06/11 15:14:04 dbeu Exp $ */
+/* $Id: http_fopen_wrapper.c,v 1.11 2001/07/14 15:08:36 rasmus Exp $ */
#include "php.h"
#include "php_globals.h"
@@ -120,7 +120,7 @@
strcpy(hdr_line, "GET ");
/* tell remote http which file to get */
- if (resource->path != NULL) {
+ if (resource->path != NULL && strlen(resource->path)) {
strlcat(hdr_line, resource->path, sizeof(hdr_line));
} else {
strlcat(hdr_line, "/", sizeof(hdr_line));