[w3m-dev 04159] Re: Is this mailing list still alive?
Hiroyuki Ito <[email protected]> Fri, 24 Nov 2006 08:15:23 +0900 (JST)
| Newsgroups | gmane.comp.web.w3m.devel |
|---|---|
| Message-ID | <[email protected]> |
> > google best
> >
> >
> >
>
> Firefox
> emacs-w3m
Firefox host = netscape.com,
domain = .netscape.com
nsCookieService::IsInDomain()
// we have a domain cookie; test the following two cases:
/*
* normal case for hostName = x<domainName>
* e.g., hostName = home.netscape.com
* domainName = .netscape.com
*
* special case for domainName = .hostName
* e.g., hostName = netscape.com
* domainName = .netscape.com
*/
Firefox
[w3m-dev 04157]
ndex: cookie.c
===================================================================
RCS file: /cvsroot/w3m/w3m/cookie.c,v
retrieving revision 1.9
diff -u -r1.9 cookie.c
--- cookie.c 26 Sep 2003 17:59:51 -0000 1.9
+++ cookie.c 23 Nov 2006 15:39:07 -0000
@@ -65,6 +65,13 @@
if (domain[1] == '\0' || contain_no_dots(host, domain_p))
return domain_p;
}
+ /*
+ * special case for domainName = .hostName
+ * see nsCookieService.cpp in Firefox.
+ */
+ else if (domain[0] == '.' && strcasecmp(host, &domain[1]) == 0) {
+ return host;
+ }
/* [RFC 2109] s. 2, cases 2, 3 */
else {
offset = (domain[0] != '.') ? 0 : strlen(host) - strlen(domain);