From 4fa6029f7ee30aa3316d6d73db61462730042908 Mon Sep 17 00:00:00 2001 From: Thomas Fitzsimmons Date: Wed, 15 May 2019 06:14:21 +0200 Subject: [PATCH] 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). --- lisp/url/url-auth.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/url/url-auth.el b/lisp/url/url-auth.el index 0746cfd96cb..f644787cc64 100644 --- a/lisp/url/url-auth.el +++ b/lisp/url/url-auth.el @@ -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)) -- 2.39.2