From: Chong Yidong Date: Mon, 20 Oct 2008 16:06:03 +0000 (+0000) Subject: (url-basic-auth): Encode password string. X-Git-Tag: emacs-pretest-23.0.90~2332 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ab8dad365fd1564fb9725d7067aa8a5e8a79f7ea;p=emacs.git (url-basic-auth): Encode password string. --- 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)))