+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.
(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))
(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)