]> granicus.if.org Git - php/commitdiff
Fixed bug #24560 (parse_url() incorrectly handling certain file:// based
authorIlia Alshanetsky <iliaa@php.net>
Mon, 21 Jul 2003 13:36:23 +0000 (13:36 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Mon, 21 Jul 2003 13:36:23 +0000 (13:36 +0000)
schemas).

ext/standard/url.c

index adf4aeb81fdda676cb29973770ac31c30e162080..541530c074d3913ca0eec7a5f786d2c137ef9135 100644 (file)
@@ -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;