]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix URL cookie expiration bug
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 9 Nov 2017 05:30:26 +0000 (21:30 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 9 Nov 2017 05:31:10 +0000 (21:31 -0800)
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.

lisp/url/url-cookie.el

index 28dfcedeaca0dffc85c39c978b82f0507f188e8b..d922033d82047516a70253ec75c56397d26bf34e 100644 (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)