From 8406c2d6823a50ca6cc51a4358fc4af74b29fa5a Mon Sep 17 00:00:00 2001 From: Rasmus Lerdorf Date: Sat, 14 Jul 2001 15:08:36 +0000 Subject: [PATCH] Fix for bug #11632 --- ext/standard/http_fopen_wrapper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/standard/http_fopen_wrapper.c b/ext/standard/http_fopen_wrapper.c index 86e0f5a197f..fe74f8c6f1f 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));