diff options
| author | Rasmus Lerdorf <rasmus@php.net> | 2001-07-14 15:08:36 +0000 |
|---|---|---|
| committer | Rasmus Lerdorf <rasmus@php.net> | 2001-07-14 15:08:36 +0000 |
| commit | 8406c2d6823a50ca6cc51a4358fc4af74b29fa5a (patch) | |
| tree | 22e429854097ee2d9e44c87a2f60cb9587b8d60b /ext | |
| parent | a462cb5088802e7f1cea11686136521a411ae0e5 (diff) | |
| download | php-git-8406c2d6823a50ca6cc51a4358fc4af74b29fa5a.tar.gz | |
Fix for bug #11632
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/standard/http_fopen_wrapper.c | 2 |
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)); |
