aboutsummaryrefslogtreecommitdiffstats
path: root/cookie.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-01-10 15:39:21 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-01-10 15:39:21 +0000
commite7c6a1c7f9170ec0d3c1c4581d1afc9984bcf733 (patch)
tree295a233ae838adbbee9e942504e9573cb179a8a4 /cookie.c
parent[w3m-dev 02811] new regexp implementation (diff)
downloadw3m-e7c6a1c7f9170ec0d3c1c4581d1afc9984bcf733.tar.gz
w3m-e7c6a1c7f9170ec0d3c1c4581d1afc9984bcf733.zip
[w3m-dev 02815]
From: aito@fw.ipsj.or.jp
Diffstat (limited to '')
-rw-r--r--cookie.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cookie.c b/cookie.c
index 1548255..583cd35 100644
--- a/cookie.c
+++ b/cookie.c
@@ -1,4 +1,4 @@
-/* $Id: cookie.c,v 1.6 2001/12/03 18:29:37 ukai Exp $ */
+/* $Id: cookie.c,v 1.7 2002/01/10 15:39:21 ukai Exp $ */
/*
* References for version 0 cookie:
@@ -45,9 +45,9 @@ domain_match(char *host, char *domain)
/* [RFC 2109] s. 2, "domain-match", case 1
* (both are IP and identical)
*/
- regexCompile("[0-9][0-9]*\\.[0-9][0-9]*\\.[0-9][0-9]*\\.[0-9][0-9]*", 0);
- m0 = regexMatch(host, 0, 1);
- m1 = regexMatch(domain, 0, 1);
+ regexCompile("[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+", 0);
+ m0 = regexMatch(host, -1, 1);
+ m1 = regexMatch(domain, -1, 1);
if (m0 && m1) {
if (strcasecmp(host, domain) == 0)
return host;