[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 4fa6029: Fix url-auth prompts when realm is empty
From: |
Lars Ingebrigtsen |
Subject: |
[Emacs-diffs] master 4fa6029: Fix url-auth prompts when realm is empty |
Date: |
Wed, 15 May 2019 00:15:39 -0400 (EDT) |
branch: master
commit 4fa6029f7ee30aa3316d6d73db61462730042908
Author: Thomas Fitzsimmons <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>
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 0746cfd..f644787 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))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 4fa6029: Fix url-auth prompts when realm is empty,
Lars Ingebrigtsen <=