+2003-11-08 Hrvoje Niksic <hniksic@xemacs.org>
+
+ * cookies.c (cookie_handle_set_cookie): Specify exact match for
+ unspecified domains.
+
2003-11-08 Hrvoje Niksic <hniksic@xemacs.org>
* main.c (main): Removed one-letter options `-C', `-g', `-G', and
if (!cookie->domain)
{
copy_domain:
+ /* If the domain was not provided, we use the one we're talking
+ to, and set exact match. */
cookie->domain = xstrdup (host);
- cookie->port = port;
+ cookie->domain_exact = 1;
+ /* Set the port, but only if it's non-default. */
+ if (port != 80 && port != 443)
+ cookie->port = port;
}
else
{