1
0
mirror of https://github.com/php/php-src.git synced 2026-04-13 02:52:48 +02:00
This commit is contained in:
Rasmus Lerdorf
2001-07-14 15:08:36 +00:00
parent a462cb5088
commit 8406c2d682

View File

@@ -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));