summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2001-07-14 15:08:36 +0000
committerRasmus Lerdorf <rasmus@php.net>2001-07-14 15:08:36 +0000
commit8406c2d6823a50ca6cc51a4358fc4af74b29fa5a (patch)
tree22e429854097ee2d9e44c87a2f60cb9587b8d60b /ext
parenta462cb5088802e7f1cea11686136521a411ae0e5 (diff)
downloadphp-git-8406c2d6823a50ca6cc51a4358fc4af74b29fa5a.tar.gz
Fix for bug #11632
Diffstat (limited to 'ext')
-rw-r--r--ext/standard/http_fopen_wrapper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/http_fopen_wrapper.c b/ext/standard/http_fopen_wrapper.c
index 86e0f5a197..fe74f8c6f1 100644
--- a/ext/standard/http_fopen_wrapper.c
+++ b/ext/standard/http_fopen_wrapper.c
@@ -120,7 +120,7 @@ FILE *php_fopen_url_wrap_http(char *path, char *mode, int options, int *issock,
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));