From: Andi Gutmans Date: Mon, 2 Oct 2000 18:13:53 +0000 (+0000) Subject: - Now really fix it. X-Git-Tag: php-4.0.3RC2~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bf7603cf833ae97daf9107941f7aecaa4d0c40e3;p=php - Now really fix it. --- diff --git a/ext/standard/url.c b/ext/standard/url.c index 7dd406dd2b..f053636584 100644 --- a/ext/standard/url.c +++ b/ext/standard/url.c @@ -59,7 +59,7 @@ void free_url(php_url * theurl) php_url *url_parse(char *str) { regex_t re; - regmatch_t subs[10]; + regmatch_t subs[11]; int err; int length = strlen(str); char *result; @@ -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, 10, subs, 0))) { + || (err=regexec(&re, result, 11, subs, 0))) { STR_FREE(ret->scheme); STR_FREE(ret->path); STR_FREE(ret->query);