1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

[svn] Specify exact domain match on cookies that don't specify domain.

This commit is contained in:
hniksic 2003-11-08 14:32:52 -08:00
parent 36a5d0b2fe
commit 8cfaba536a
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -848,8 +848,13 @@ cookie_handle_set_cookie (struct cookie_jar *jar,
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
{