diff options
| author | Paul Eggert | 2017-11-08 21:30:26 -0800 |
|---|---|---|
| committer | Paul Eggert | 2017-11-08 21:31:10 -0800 |
| commit | 781f276cc12a204ec7db9ffd30d22a9a18c0fe94 (patch) | |
| tree | e6b0675b1f429161cec6cf0877b83a2402f5820d | |
| parent | 9e59de9449b53c3ecd85b624c11360ba9cafee75 (diff) | |
| download | emacs-781f276cc12a204ec7db9ffd30d22a9a18c0fe94.tar.gz emacs-781f276cc12a204ec7db9ffd30d22a9a18c0fe94.zip | |
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.
| -rw-r--r-- | lisp/url/url-cookie.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/url/url-cookie.el b/lisp/url/url-cookie.el index 28dfcedeaca..d922033d820 100644 --- a/lisp/url/url-cookie.el +++ b/lisp/url/url-cookie.el | |||
| @@ -161,7 +161,7 @@ telling Microsoft that." | |||
| 161 | (let ((exp (url-cookie-expires cookie))) | 161 | (let ((exp (url-cookie-expires cookie))) |
| 162 | (and (> (length exp) 0) | 162 | (and (> (length exp) 0) |
| 163 | (condition-case () | 163 | (condition-case () |
| 164 | (time-less-p nil (date-to-time exp)) | 164 | (time-less-p (date-to-time exp) nil) |
| 165 | (error nil))))) | 165 | (error nil))))) |
| 166 | 166 | ||
| 167 | (defun url-cookie-retrieve (host &optional localpart secure) | 167 | (defun url-cookie-retrieve (host &optional localpart secure) |