diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2002-12-31 18:54:38 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2002-12-31 18:54:38 +0000 |
commit | 525bb0ed7e273d031b1a6832865e96362a02090d (patch) | |
tree | 5a0cfb7f54e9e13cd9ccec2a3d93c9bb99ce45b9 /ext/standard/url.c | |
parent | fe18a0e9b1d2478b9017857f89fa804e5e162d30 (diff) | |
download | php-git-525bb0ed7e273d031b1a6832865e96362a02090d.tar.gz |
MFH
Diffstat (limited to 'ext/standard/url.c')
-rw-r--r-- | ext/standard/url.c | 3 |
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"))) { |