diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2003-07-21 13:36:23 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2003-07-21 13:36:23 +0000 |
commit | 7825a1864cf5fbd283c164e3b8303ffee1435e5d (patch) | |
tree | b291a6bf9a2a4e600ba7d6521e089ebde38bf495 | |
parent | 7e72d8e826d790713b990b7f34d85320633da4e2 (diff) | |
download | php-git-7825a1864cf5fbd283c164e3b8303ffee1435e5d.tar.gz |
Fixed bug #24560 (parse_url() incorrectly handling certain file:// based
schemas).
-rw-r--r-- | ext/standard/url.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |