Commit ceed3d75 authored by Lars Ingebrigtsen's avatar Lars Ingebrigtsen

Don't have url-basic-auth bug out when called with an URL string

* lisp/url/url-auth.el (url-basic-auth): Pass the parsed URL
object to the prompting function instead of the parameter that's
possibly a string (bug#26708).  Passing url-basic-auth with a
string parameter would fail if passed a non-parsed URL.
parent 4f1df40d
Pipeline #1667 passed with stage
in 52 minutes and 46 seconds
......@@ -86,7 +86,7 @@ instead of the filename inheritance method."
((and prompt (not byserv))
(setq user (or
(url-do-auth-source-search server type :user)
(read-string (url-auth-user-prompt url realm)
(read-string (url-auth-user-prompt href realm)
(or user (user-real-login-name))))
pass (or
(url-do-auth-source-search server type :secret)
......@@ -115,7 +115,7 @@ instead of the filename inheritance method."
(progn
(setq user (or
(url-do-auth-source-search server type :user)
(read-string (url-auth-user-prompt url realm)
(read-string (url-auth-user-prompt href realm)
(user-real-login-name)))
pass (or
(url-do-auth-source-search server type :secret)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment