diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-01-10 15:39:21 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-01-10 15:39:21 +0000 |
commit | e7c6a1c7f9170ec0d3c1c4581d1afc9984bcf733 (patch) | |
tree | 295a233ae838adbbee9e942504e9573cb179a8a4 /cookie.c | |
parent | [w3m-dev 02811] new regexp implementation (diff) | |
download | w3m-e7c6a1c7f9170ec0d3c1c4581d1afc9984bcf733.tar.gz w3m-e7c6a1c7f9170ec0d3c1c4581d1afc9984bcf733.zip |
[w3m-dev 02815]
From: aito@fw.ipsj.or.jp
Diffstat (limited to 'cookie.c')
-rw-r--r-- | cookie.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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; |