diff options
| author | Chong Yidong | 2010-12-04 17:41:41 -0500 |
|---|---|---|
| committer | Chong Yidong | 2010-12-04 17:41:41 -0500 |
| commit | 37bf6ce2b49638516419b1cab86e2d891ade779e (patch) | |
| tree | c85f291a8d8d4a7524e14aa43da853b7835c279d | |
| parent | 11cb1e35ff74fdff80d74ee3ec6d61e74b802cea (diff) | |
| download | emacs-37bf6ce2b49638516419b1cab86e2d891ade779e.tar.gz emacs-37bf6ce2b49638516419b1cab86e2d891ade779e.zip | |
* url-cookie.el (url-cookie-retrieve): Handle null LOCALPART (Bug#7543).
Suggested by Lennart Borgman.
| -rw-r--r-- | lisp/url/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/url/url-cookie.el | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/lisp/url/ChangeLog b/lisp/url/ChangeLog index 90533fa297c..8fdd340da6c 100644 --- a/lisp/url/ChangeLog +++ b/lisp/url/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-12-04 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * url-cookie.el (url-cookie-retrieve): Handle null LOCALPART. | ||
| 4 | Suggested by Lennart Borgman (Bug#7543). | ||
| 5 | |||
| 1 | 2010-09-18 Glenn Morris <rgm@gnu.org> | 6 | 2010-09-18 Glenn Morris <rgm@gnu.org> |
| 2 | 7 | ||
| 3 | * url-cache.el (url-is-cached): Doc fix. | 8 | * url-cache.el (url-is-cached): Doc fix. |
diff --git a/lisp/url/url-cookie.el b/lisp/url/url-cookie.el index 2067f097224..dc7566c6d5e 100644 --- a/lisp/url/url-cookie.el +++ b/lisp/url/url-cookie.el | |||
| @@ -198,7 +198,7 @@ telling Microsoft that." | |||
| 198 | (and exp (> (float-time) (float-time (date-to-time exp)))))) | 198 | (and exp (> (float-time) (float-time (date-to-time exp)))))) |
| 199 | 199 | ||
| 200 | (defun url-cookie-retrieve (host &optional localpart secure) | 200 | (defun url-cookie-retrieve (host &optional localpart secure) |
| 201 | "Retrieve all the netscape-style cookies for a specified HOST and LOCALPART." | 201 | "Retrieve all cookies for a specified HOST and LOCALPART." |
| 202 | (let ((storage (if secure | 202 | (let ((storage (if secure |
| 203 | (append url-cookie-secure-storage url-cookie-storage) | 203 | (append url-cookie-secure-storage url-cookie-storage) |
| 204 | url-cookie-storage)) | 204 | url-cookie-storage)) |
| @@ -226,7 +226,8 @@ telling Microsoft that." | |||
| 226 | (setq cur (car cookies) | 226 | (setq cur (car cookies) |
| 227 | cookies (cdr cookies) | 227 | cookies (cdr cookies) |
| 228 | localpart-match (url-cookie-localpart cur)) | 228 | localpart-match (url-cookie-localpart cur)) |
| 229 | (if (and (if (stringp localpart-match) | 229 | (if (and (if (and (stringp localpart-match) |
| 230 | (stringp localpart)) | ||
| 230 | (string-match (concat "^" (regexp-quote | 231 | (string-match (concat "^" (regexp-quote |
| 231 | localpart-match)) | 232 | localpart-match)) |
| 232 | localpart) | 233 | localpart) |