+2011-11-03 Lars Magne Ingebrigtsen <larsi@gnus.org>
+
+ * url-cookie.el (url-cookie-expired-p): Protect against
+ zero-length cookie expiry dates.
+
2011-10-19 Chong Yidong <cyd@gnu.org>
* url-handlers.el (url-handler-mode): Doc fix.
(defun url-cookie-expired-p (cookie)
"Return non-nil if COOKIE is expired."
(let ((exp (url-cookie-expires cookie)))
- (and exp (> (float-time) (float-time (date-to-time exp))))))
+ (and (> (length exp) 0)
+ (> (float-time) (float-time (date-to-time exp))))))
(defun url-cookie-retrieve (host &optional localpart secure)
"Retrieve all cookies for a specified HOST and LOCALPART."