Commit 4fa6029f authored by Thomas Fitzsimmons's avatar Thomas Fitzsimmons Committed by Lars Ingebrigtsen

Fix url-auth prompts when realm is empty

* lisp/url/url-auth.el (url-get-authentication): When realm is
empty, use the entire URL in the prompt (bug#35688).
parent e3fbe04c
Pipeline #1665 passed with stage
in 50 minutes and 1 second
......@@ -478,6 +478,8 @@ PROMPT is boolean - specifies whether to ask the user for a username/password
if one cannot be found in the cache"
(if (not realm)
(setq realm (cdr-safe (assoc "realm" args))))
(if (equal realm "")
(setq realm nil))
(if (stringp url)
(setq url (url-generic-parse-url url)))
(if (or (null type) (eq type 'any))
......
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