]> granicus.if.org Git - php/commitdiff
- Now really fix it.
authorAndi Gutmans <andi@php.net>
Mon, 2 Oct 2000 18:13:53 +0000 (18:13 +0000)
committerAndi Gutmans <andi@php.net>
Mon, 2 Oct 2000 18:13:53 +0000 (18:13 +0000)
ext/standard/url.c

index 7dd406dd2b38f63fe4b3b3a90eb8e49cf9dcfcb6..f053636584331f38df40d3f69539e9ae9eb4a268 100644 (file)
@@ -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);