summaryrefslogtreecommitdiff
path: root/ext/standard/url.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2003-02-25 23:39:57 +0000
committerIlia Alshanetsky <iliaa@php.net>2003-02-25 23:39:57 +0000
commitbce8bfdae4a236fd89465d2705d6e5afab0088b0 (patch)
tree918b533e12eb043798f25c43119c7066b63c07e2 /ext/standard/url.c
parente0ec5871d9bd473dbf24102edefe762e5ac61b6e (diff)
downloadphp-git-bce8bfdae4a236fd89465d2705d6e5afab0088b0.tar.gz
MFH (forgot to put this fix into the 5.X tree).
Diffstat (limited to 'ext/standard/url.c')
-rw-r--r--ext/standard/url.c3
1 files changed, 3 insertions, 0 deletions
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"))) {