cvs: php4 /ext/standard url.c
| From: | Andi Gutmans | Date: | Mon, 02 Oct 2000 17:51:30 +0000 |
| Subject: | cvs: php4 /ext/standard url.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-1915@lists.php.net to get a copy of this message | ||
andi Mon Oct 2 10:51:30 2000 EDT
Modified files:
/php4/ext/standard url.c
Log:
- Fix bug in parse_url()
Index: php4/ext/standard/url.c
diff -u php4/ext/standard/url.c:1.30 php4/ext/standard/url.c:1.31
--- php4/ext/standard/url.c:1.30 Thu Sep 21 17:33:55 2000
+++ php4/ext/standard/url.c Mon Oct 2 10:51:30 2000
@@ -15,7 +15,7 @@
| Author: Jim Winstead (jimw@php.net) |
+----------------------------------------------------------------------+
*/
-/* $Id: url.c,v 1.30 2000/09/22 00:33:55 venaas Exp $ */
+/* $Id: url.c,v 1.31 2000/10/02 17:51:30 andi Exp $ */
#include <stdlib.h>
#include <string.h>
@@ -117,7 +117,7 @@
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);