w3m

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/w3m.git/
Log | Files | Refs | README

commit 294d209e662016a9a08bcc015ed47684f8aa2690
parent 37ca47b3b60b965c500528fd3e16b224bfc47dfb
Author: inu <inu>
Date:   Sun, 10 Dec 2006 10:53:22 +0000

accept invalid "set-cookies" headers when "domainName == .hostName".

Diffstat:
MChangeLog | 6++++++
Mcookie.c | 7+++++++
2 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,9 @@ +2006-12-10 Hiroyuki Ito <ZXB01226@nifty.com> + + * [w3m-dev 04159] Re: Is this mailing list still alive? + * cookie.c: accept invalid "set-cookies" headers + when "domainName == .hostName". + 2006-12-10 noz * [20051124052846@w3mbbs] LiveHTTPHeaders diff --git a/cookie.c b/cookie.c @@ -65,6 +65,13 @@ domain_match(char *host, char *domain) 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);