Fix URL cookie expiration bug

Problem reported by Damien Cassou (Bug#29223).
* lisp/url/url-cookie.el (url-cookie-expired-p):
Fix typo in previous change, which caused unexpired cookies
to be treated as expired and vice versa.
This commit is contained in:
Paul Eggert 2017-11-08 21:30:26 -08:00
parent 9e59de9449
commit 781f276cc1

View file

@ -161,7 +161,7 @@ telling Microsoft that."
(let ((exp (url-cookie-expires cookie)))
(and (> (length exp) 0)
(condition-case ()
(time-less-p nil (date-to-time exp))
(time-less-p (date-to-time exp) nil)
(error nil)))))
(defun url-cookie-retrieve (host &optional localpart secure)