cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Cookies with blank expiry date

From: Dima Barsky <dima_at_debian.org>
Date: Tue, 6 Oct 2009 12:18:49 +0100

A small correction to my previous email, this time the files are in the
right order:

$ diff -u cookie.c~ cookie.c
--- cookie.c~ 2009-04-23 12:51:08.000000000 +0100
+++ cookie.c 2009-10-05 10:56:49.000000000 +0100
@@ -351,7 +351,8 @@
             /* Note that we store -1 in 'expires' here if the date couldn't
                get parsed for whatever reason. This will have the effect that
                the cookie won't match. */
- co->expires = curl_getdate(what, &now);
+ if( whatptr[0] )
+ co->expires = curl_getdate(what, &now);
           }
           else if(!co->name) {
             co->name = strdup(name);
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-10-06