Commit 37bf6ce2 authored by Chong Yidong's avatar Chong Yidong
Browse files

* url-cookie.el (url-cookie-retrieve): Handle null LOCALPART (Bug#7543).

Suggested by Lennart Borgman.
parent 11cb1e35
2010-12-04 Chong Yidong <cyd@stupidchicken.com>
* url-cookie.el (url-cookie-retrieve): Handle null LOCALPART.
Suggested by Lennart Borgman (Bug#7543).
2010-09-18 Glenn Morris <rgm@gnu.org>
* url-cache.el (url-is-cached): Doc fix.
......
......@@ -198,7 +198,7 @@ telling Microsoft that."
(and exp (> (float-time) (float-time (date-to-time exp))))))
(defun url-cookie-retrieve (host &optional localpart secure)
"Retrieve all the netscape-style cookies for a specified HOST and LOCALPART."
"Retrieve all cookies for a specified HOST and LOCALPART."
(let ((storage (if secure
(append url-cookie-secure-storage url-cookie-storage)
url-cookie-storage))
......@@ -226,7 +226,8 @@ telling Microsoft that."
(setq cur (car cookies)
cookies (cdr cookies)
localpart-match (url-cookie-localpart cur))
(if (and (if (stringp localpart-match)
(if (and (if (and (stringp localpart-match)
(stringp localpart))
(string-match (concat "^" (regexp-quote
localpart-match))
localpart)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment