]> granicus.if.org Git - php/commitdiff
- Fix bug in parse_url()
authorAndi Gutmans <andi@php.net>
Mon, 2 Oct 2000 17:51:30 +0000 (17:51 +0000)
committerAndi Gutmans <andi@php.net>
Mon, 2 Oct 2000 17:51:30 +0000 (17:51 +0000)
ext/standard/url.c

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