cvs: php4 /ext/standard url.c
| From: | Andi Gutmans | Date: | Mon, 02 Oct 2000 18:13:53 +0000 |
| Subject: | cvs: php4 /ext/standard url.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-1917@lists.php.net to get a copy of this message | ||
andi Mon Oct 2 11:13:53 2000 EDT
Modified files:
/php4/ext/standard url.c
Log:
- Now really fix it.
Index: php4/ext/standard/url.c
diff -u php4/ext/standard/url.c:1.31 php4/ext/standard/url.c:1.32
--- php4/ext/standard/url.c:1.31 Mon Oct 2 10:51:30 2000
+++ php4/ext/standard/url.c Mon Oct 2 11:13:53 2000
@@ -15,7 +15,7 @@
| Author: Jim Winstead (jimw@php.net) |
+----------------------------------------------------------------------+
*/
-/* $Id: url.c,v 1.31 2000/10/02 17:51:30 andi Exp $ */
+/* $Id: url.c,v 1.32 2000/10/02 18:13:53 andi Exp $ */
#include <stdlib.h>
#include <string.h>
@@ -59,7 +59,7 @@
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 @@
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);