From 7825a1864cf5fbd283c164e3b8303ffee1435e5d Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Mon, 21 Jul 2003 13:36:23 +0000 Subject: [PATCH] Fixed bug #24560 (parse_url() incorrectly handling certain file:// based schemas). --- ext/standard/url.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.50.1