]> granicus.if.org Git - php/commitdiff
MFH: Fixed bug #36351 (parse_url() does not parse numeric paths properly).
authorIlia Alshanetsky <iliaa@php.net>
Sun, 12 Feb 2006 16:43:03 +0000 (16:43 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Sun, 12 Feb 2006 16:43:03 +0000 (16:43 +0000)
ext/standard/url.c

index 66806e51c5a6b436f51803be6c246e81ac3c0afb..d15186893bd8ee1aa5407cd8420b3bb98bb8b400 100644 (file)
@@ -137,7 +137,7 @@ PHPAPI php_url *php_url_parse_ex(char const *str, int length)
                                p++;
                        }
                        
-                       if ((*p) == '\0' || *p == '/') {
+                       if ((*p == '\0' || *p == '/') && (p - e) < 7) {
                                goto parse_port;
                        }