From: Andi Gutmans Date: Mon, 2 Oct 2000 17:51:30 +0000 (+0000) Subject: - Fix bug in parse_url() X-Git-Tag: php-4.0.3RC2~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=28c96e89e1f29077a0be7580a258cf6d77a2b903;p=php - Fix bug in parse_url() --- diff --git a/ext/standard/url.c b/ext/standard/url.c index a0f060e75c..7dd406dd2b 100644 --- a/ext/standard/url.c +++ b/ext/standard/url.c @@ -117,7 +117,7 @@ php_url *url_parse(char *str) regfree(&re); /* free the old regex */ if ((cerr=regcomp(&re, "^(([^@:]+)(:([^@:]+))?@)?((\\[([^]]+)\\])|([^:@]+))(:([^:@]+))?", REG_EXTENDED)) - || (err=regexec(&re, result, 11, subs, 0))) { + || (err=regexec(&re, result, 10, subs, 0))) { STR_FREE(ret->scheme); STR_FREE(ret->path); STR_FREE(ret->query);