From: Ilia Alshanetsky Date: Sun, 12 Feb 2006 16:43:03 +0000 (+0000) Subject: MFH: Fixed bug #36351 (parse_url() does not parse numeric paths properly). X-Git-Tag: php-4.4.3RC1~59 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f159b33aa99b25390d7d9d95d80d167c76d04663;p=php MFH: Fixed bug #36351 (parse_url() does not parse numeric paths properly). --- diff --git a/ext/standard/url.c b/ext/standard/url.c index 66806e51c5..d15186893b 100644 --- a/ext/standard/url.c +++ b/ext/standard/url.c @@ -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; }