From ab8dad365fd1564fb9725d7067aa8a5e8a79f7ea Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Mon, 20 Oct 2008 16:06:03 +0000 Subject: [PATCH] (url-basic-auth): Encode password string. --- lisp/url/url-auth.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/url/url-auth.el b/lisp/url/url-auth.el index ce730ce74ea..adf1d5b6703 100644 --- a/lisp/url/url-auth.el +++ b/lisp/url/url-auth.el @@ -93,7 +93,8 @@ instead of the filename inheritance method." (cons file (setq retval (base64-encode-string - (format "%s:%s" user pass))))) + (format "%s:%s" user + (encode-coding-string pass 'utf-8)))))) (symbol-value url-basic-auth-storage)))) (byserv (setq retval (cdr-safe (assoc file byserv))) -- 2.39.5