Skip to content

Commit bce8bfd

Browse files
author
Ilia Alshanetsky
committed
MFH (forgot to put this fix into the 5.X tree).
1 parent e0ec587 commit bce8bfd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ext/standard/url.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ PHPAPI php_url *php_url_parse(char *str)
124124

125125
if (*(e+2) == '/') {
126126
s = e + 3;
127+
if (!strncasecmp("file", ret->scheme, sizeof("file"))) {
128+
goto nohost;
129+
}
127130
} else {
128131
s = e + 1;
129132
if (!strncasecmp("file", ret->scheme, sizeof("file"))) {

0 commit comments

Comments
 (0)