summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/standard/url.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/standard/url.c b/ext/standard/url.c
index adf4aeb81f..541530c074 100644
--- a/ext/standard/url.c
+++ b/ext/standard/url.c
@@ -125,7 +125,9 @@ PHPAPI php_url *php_url_parse(char *str)
if (*(e+2) == '/') {
s = e + 3;
if (!strncasecmp("file", ret->scheme, sizeof("file"))) {
- goto nohost;
+ if (*(e + 3) == '/') {
+ goto nohost;
+ }
}
} else {
s = e + 1;