mirror of
https://github.com/php/php-src.git
synced 2026-04-13 02:52:48 +02:00
Fix for bug #11632
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user