From bf7603cf833ae97daf9107941f7aecaa4d0c40e3 Mon Sep 17 00:00:00 2001 From: Andi Gutmans Date: Mon, 2 Oct 2000 18:13:53 +0000 Subject: [PATCH] - Now really fix it. --- ext/standard/url.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.50.1