]> granicus.if.org Git - php/commitdiff
MFH (forgot to put this fix into the 5.X tree).
authorIlia Alshanetsky <iliaa@php.net>
Tue, 25 Feb 2003 23:39:57 +0000 (23:39 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Tue, 25 Feb 2003 23:39:57 +0000 (23:39 +0000)
ext/standard/url.c

index 8bd2a99d00a60454cb7903bf23ba07a2f4aa0bd8..8bbb599e5b421695ae2299420e868e544f228c37 100644 (file)
@@ -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"))) {