mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Would discard cookies with unparsable expiry time.
This commit is contained in:
parent
8b08f41f0d
commit
0e8788c58c
@ -1,3 +1,8 @@
|
||||
2007-01-23 Hrvoje Niksic <hniksic@xemacs.org>
|
||||
|
||||
* cookies.c (parse_set_cookie): Would erroneously discard cookies
|
||||
with unparsable expiry time.
|
||||
|
||||
2007-01-23 Hrvoje Niksic <hniksic@xemacs.org>
|
||||
|
||||
* progress.c (create_image): Check for ETA overflow.
|
||||
|
@ -390,17 +390,16 @@ parse_set_cookie (const char *set_cookie, bool silent)
|
||||
{
|
||||
cookie->permanent = 1;
|
||||
cookie->expiry_time = expires;
|
||||
/* According to netscape's specification, expiry time in
|
||||
the past means that discarding of a matching cookie
|
||||
is requested. */
|
||||
if (cookie->expiry_time < cookies_now)
|
||||
cookie->discard_requested = 1;
|
||||
}
|
||||
else
|
||||
/* Error in expiration spec. Assume default (cookie doesn't
|
||||
expire, but valid only for this session.) */
|
||||
;
|
||||
|
||||
/* According to netscape's specification, expiry time in the
|
||||
past means that discarding of a matching cookie is
|
||||
requested. */
|
||||
if (cookie->expiry_time < cookies_now)
|
||||
cookie->discard_requested = 1;
|
||||
}
|
||||
else if (TOKEN_IS (name, "max-age"))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user