summaryrefslogtreecommitdiff
path: root/ext/standard/url.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2002-12-31 18:54:38 +0000
committerIlia Alshanetsky <iliaa@php.net>2002-12-31 18:54:38 +0000
commit525bb0ed7e273d031b1a6832865e96362a02090d (patch)
tree5a0cfb7f54e9e13cd9ccec2a3d93c9bb99ce45b9 /ext/standard/url.c
parentfe18a0e9b1d2478b9017857f89fa804e5e162d30 (diff)
downloadphp-git-525bb0ed7e273d031b1a6832865e96362a02090d.tar.gz
MFH
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 8752a6a201..99a6c5df60 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"))) {