X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fcookies.c;h=3de9c32327e11ee30497c9b8dcab5d7fa80133bd;hp=7df96f7c9cde86d1f441313b170c519bfa538cd2;hb=fd42ae13117c207c91558c2f466ffdbf6bb55039;hpb=291693c3c25766a454f472415b22c2d1fbddcd29 diff --git a/src/cookies.c b/src/cookies.c index 7df96f7c..3de9c323 100644 --- a/src/cookies.c +++ b/src/cookies.c @@ -230,7 +230,7 @@ store_cookie (struct cookie_jar *jar, struct cookie *cookie) cookie->permanent ? "permanent" : "nonpermanent", cookie->secure, cookie->expiry_time - ? asctime (localtime (&cookie->expiry_time)) : "", + ? asctime (localtime (&cookie->expiry_time)) : "", cookie->attr, cookie->value)); } @@ -676,7 +676,7 @@ check_domain_match (const char *cookie_domain, const char *host) DEBUGP ((" 3")); /* HOST must match the tail of cookie_domain. */ - if (!match_tail (host, cookie_domain)) + if (!match_tail (host, cookie_domain, 1)) return 0; /* We know that COOKIE_DOMAIN is a subset of HOST; however, we must @@ -754,7 +754,7 @@ check_domain_match (const char *cookie_domain, const char *host) ".com", ".edu", ".net", ".org", ".gov", ".mil", ".int" }; for (i = 0; i < ARRAY_SIZE (known_toplevel_domains); i++) - if (match_tail (cookie_domain, known_toplevel_domains[i])) + if (match_tail (cookie_domain, known_toplevel_domains[i], 1)) { known_toplevel = 1; break;