Browse Source

- Fix bug in parse_url()

PHP-4.0.5
Andi Gutmans 26 years ago
parent
commit
28c96e89e1
  1. 2
      ext/standard/url.c

2
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);

Loading…
Cancel
Save