Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
033535de
Commit
033535de
authored
Jan 14, 2009
by
Chong Yidong
Browse files
(url-cookie-retrieve): Handle null localpart.
parent
26343c7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
lisp/url/url-cookie.el
lisp/url/url-cookie.el
+6
-5
No files found.
lisp/url/url-cookie.el
View file @
033535de
...
...
@@ -223,7 +223,7 @@ telling Microsoft that."
(
*
1
(
string-to-number
(
aref
exp-time
0
))))))
(
>
(
-
cur-norm
exp-norm
)
1
))))))
(
defun
url-cookie-retrieve
(
host
localpart
&optional
secure
)
(
defun
url-cookie-retrieve
(
host
&optional
localpart
secure
)
"Retrieve all the netscape-style cookies for a specified HOST and LOCALPART."
(
let
((
storage
(
if
secure
(
append
url-cookie-secure-storage
url-cookie-storage
)
...
...
@@ -232,7 +232,7 @@ telling Microsoft that."
(
cookies
nil
)
(
cur
nil
)
(
retval
nil
)
(
localpart-
regexp
nil
))
(
localpart-
match
nil
))
(
while
storage
(
setq
cur
(
car
storage
)
storage
(
cdr
storage
)
...
...
@@ -251,9 +251,10 @@ telling Microsoft that."
(
while
cookies
(
setq
cur
(
car
cookies
)
cookies
(
cdr
cookies
)
localpart-regexp
(
concat
"^"
(
regexp-quote
(
url-cookie-localpart
cur
))))
(
if
(
and
(
string-match
localpart-regexp
localpart
)
localpart-match
(
let
((
lp
(
url-cookie-localpart
cur
)))
(
when
lp
(
concat
"^"
(
regexp-quote
lp
)))))
(
if
(
and
(
equal
localpart
localpart-match
)
(
not
(
url-cookie-expired-p
cur
)))
(
setq
retval
(
cons
cur
retval
))))))
retval
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment