27 lines
882 B
Plaintext
27 lines
882 B
Plaintext
--- wget-1.10.2/src/cookies.c.cookies 2007-02-12 06:02:04.000000000 -0500
|
|
+++ wget-1.10.2/src/cookies.c 2007-02-12 06:04:06.000000000 -0500
|
|
@@ -398,18 +398,17 @@
|
|
{
|
|
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;
|
|
-
|
|
return 1;
|
|
}
|
|
else if (NAME_IS ("max-age"))
|