From 28c96e89e1f29077a0be7580a258cf6d77a2b903 Mon Sep 17 00:00:00 2001 From: Andi Gutmans Date: Mon, 2 Oct 2000 17:51:30 +0000 Subject: [PATCH] - Fix bug in parse_url() --- ext/standard/url.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.50.1