cookie->permanent ? "permanent" : "nonpermanent",
cookie->secure,
cookie->expiry_time
- ? asctime (localtime (&cookie->expiry_time)) : "<indefinitely>",
+ ? asctime (localtime (&cookie->expiry_time)) : "<undefined>",
cookie->attr, cookie->value));
}
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
".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;