mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Minor doc fix.
This commit is contained in:
parent
e8f4bc1fae
commit
d6064a4a94
@ -726,9 +726,9 @@ check_domain_match (const char *cookie_domain, const char *host)
|
|||||||
{
|
{
|
||||||
int dlen = strlen (cookie_domain);
|
int dlen = strlen (cookie_domain);
|
||||||
int hlen = strlen (host);
|
int hlen = strlen (host);
|
||||||
/* hostname.foobar.com */
|
/* cookie host: hostname.foobar.com */
|
||||||
/* bar.com */
|
/* desired domain: bar.com */
|
||||||
/* ^ <-- must be '.' for host */
|
/* '.' must be here in host-> ^ */
|
||||||
if (hlen > dlen && host[hlen - dlen - 1] != '.')
|
if (hlen > dlen && host[hlen - dlen - 1] != '.')
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user