GNU bug report logs - #7543
Optional parameter `localpart' in url-cookie-retrieve is used as a string

Previous Next

Package: emacs;

Reported by: Lennart Borgman <lennart.borgman <at> gmail.com>

Date: Fri, 3 Dec 2010 18:17:02 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Lennart Borgman <lennart.borgman <at> gmail.com>
To: Emacs Bugs <bug-gnu-emacs <at> gnu.org>
Subject: Optional parameter `localpart' in url-cookie-retrieve is used as a
	string
Date: Fri, 3 Dec 2010 19:21:52 +0100
The function looks like

  (defun url-cookie-retrieve (host &optional localpart secure)

However localpart is used without checking it in

	    (if (and (if (stringp localpart-match)
			 (string-match (concat "^" (regexp-quote
						    localpart-match))
				       localpart)

Should not both localpart-match and localpart be checked with (stringp ...)?

This is with a checkout from 2010-10-19 (my patched version, I don't
think I have any changes there).




This bug report was last modified 14 years and 250 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.