From: Ilia Alshanetsky Date: Tue, 25 Feb 2003 23:39:57 +0000 (+0000) Subject: MFH (forgot to put this fix into the 5.X tree). X-Git-Tag: RELEASE_0_5~743 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bce8bfdae4a236fd89465d2705d6e5afab0088b0;p=php MFH (forgot to put this fix into the 5.X tree). --- diff --git a/ext/standard/url.c b/ext/standard/url.c index 8bd2a99d00..8bbb599e5b 100644 --- a/ext/standard/url.c +++ b/ext/standard/url.c @@ -124,6 +124,9 @@ PHPAPI php_url *php_url_parse(char *str) if (*(e+2) == '/') { s = e + 3; + if (!strncasecmp("file", ret->scheme, sizeof("file"))) { + goto nohost; + } } else { s = e + 1; if (!strncasecmp("file", ret->scheme, sizeof("file"))) {