From: Ilia Alshanetsky Date: Mon, 21 Jul 2003 13:36:23 +0000 (+0000) Subject: Fixed bug #24560 (parse_url() incorrectly handling certain file:// based X-Git-Tag: BEFORE_ARG_INFO~154 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7825a1864cf5fbd283c164e3b8303ffee1435e5d;p=php Fixed bug #24560 (parse_url() incorrectly handling certain file:// based schemas). --- 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;