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


View this message in rfc822 format

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Lennart Borgman <lennart.borgman <at> gmail.com>
Cc: 7543 <at> debbugs.gnu.org
Subject: bug#7543: Optional parameter `localpart' in url-cookie-retrieve is used as a string
Date: Sat, 04 Dec 2010 17:41:48 -0500
Lennart Borgman <lennart.borgman <at> gmail.com> writes:

> 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 ...)?

Fixed, thanks.




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.