summaryrefslogtreecommitdiff
path: root/ext/standard/url.c
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2000-10-02 17:51:30 +0000
committerAndi Gutmans <andi@php.net>2000-10-02 17:51:30 +0000
commit28c96e89e1f29077a0be7580a258cf6d77a2b903 (patch)
treed1598763179aaa5bcd36048862ece9b96822d4ca /ext/standard/url.c
parentb189759bcde2783dfc98f78dfd4ebdbcd46a332b (diff)
downloadphp-git-28c96e89e1f29077a0be7580a258cf6d77a2b903.tar.gz
- Fix bug in parse_url()
Diffstat (limited to 'ext/standard/url.c')
-rw-r--r--ext/standard/url.c2
1 files changed, 1 insertions, 1 deletions
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);