diff options
author | Andi Gutmans <andi@php.net> | 2000-10-02 17:51:30 +0000 |
---|---|---|
committer | Andi Gutmans <andi@php.net> | 2000-10-02 17:51:30 +0000 |
commit | 28c96e89e1f29077a0be7580a258cf6d77a2b903 (patch) | |
tree | d1598763179aaa5bcd36048862ece9b96822d4ca /ext/standard/url.c | |
parent | b189759bcde2783dfc98f78dfd4ebdbcd46a332b (diff) | |
download | php-git-28c96e89e1f29077a0be7580a258cf6d77a2b903.tar.gz |
- Fix bug in parse_url()
Diffstat (limited to 'ext/standard/url.c')
-rw-r--r-- | ext/standard/url.c | 2 |
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); |