mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-28 07:45:00 +00:00
Avoid signaling errors in url-basic-auth when password is nil
* lisp/url/url-auth.el (url-basic-auth): Handle nil PASS. Suggested by Ellis Kenyo <me@elken.dev>. (Bug#61411)
This commit is contained in:
parent
756225e377
commit
1c7b2673bd
@ -100,7 +100,10 @@ instead of the filename inheritance method."
|
||||
(setq retval
|
||||
(base64-encode-string
|
||||
(format "%s:%s" user
|
||||
(encode-coding-string pass 'utf-8))
|
||||
(if pass
|
||||
(encode-coding-string pass
|
||||
'utf-8)
|
||||
""))
|
||||
t))))
|
||||
(symbol-value url-basic-auth-storage))))
|
||||
(byserv
|
||||
|
Loading…
Reference in New Issue
Block a user