cvs: php4 /ext/standard url.c
| From: | Stig Venaas | Date: | Fri, 22 Sep 2000 00:33:55 +0000 |
| Subject: | cvs: php4 /ext/standard url.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-1824@lists.php.net to get a copy of this message | ||
venaas Thu Sep 21 17:33:55 2000 EDT
Modified files:
/php4/ext/standard url.c
Log:
Small fix to the literal IPv6 parsing, now stops at first ] after [
Index: php4/ext/standard/url.c
diff -u php4/ext/standard/url.c:1.29 php4/ext/standard/url.c:1.30
--- php4/ext/standard/url.c:1.29 Thu Sep 21 17:12:00 2000
+++ php4/ext/standard/url.c Thu Sep 21 17:33:55 2000
@@ -15,7 +15,7 @@
| Author: Jim Winstead (jimw@php.net) |
+----------------------------------------------------------------------+
*/
-/* $Id: url.c,v 1.29 2000/09/22 00:12:00 venaas Exp $ */
+/* $Id: url.c,v 1.30 2000/09/22 00:33:55 venaas Exp $ */
#include <stdlib.h>
#include <string.h>
@@ -116,7 +116,7 @@
regfree(&re); /* free the old regex */
- if ((cerr=regcomp(&re,
"^(([^@:]+)(:([^@:]+))?@)?((\\[(.*)\\])|([^:@]+))(:([^:@]+))?", REG_EXTENDED))
+ if ((cerr=regcomp(&re,
"^(([^@:]+)(:([^@:]+))?@)?((\\[([^]]+)\\])|([^:@]+))(:([^:@]+))?", REG_EXTENDED))
|| (err=regexec(&re, result, 11, subs, 0))) {
STR_FREE(ret->scheme);
STR_FREE(ret->path);