diff options
| author | Chong Yidong | 2008-10-20 16:06:03 +0000 |
|---|---|---|
| committer | Chong Yidong | 2008-10-20 16:06:03 +0000 |
| commit | ab8dad365fd1564fb9725d7067aa8a5e8a79f7ea (patch) | |
| tree | 8cc463323bc6c858e15c0a3113a134b0ac59d284 | |
| parent | 3b4df55029609b079e7b6757cc530af5a0e68fa3 (diff) | |
| download | emacs-ab8dad365fd1564fb9725d7067aa8a5e8a79f7ea.tar.gz emacs-ab8dad365fd1564fb9725d7067aa8a5e8a79f7ea.zip | |
(url-basic-auth): Encode password string.
| -rw-r--r-- | lisp/url/url-auth.el | 3 |
1 files changed, 2 insertions, 1 deletions
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." | |||
| 93 | (cons file | 93 | (cons file |
| 94 | (setq retval | 94 | (setq retval |
| 95 | (base64-encode-string | 95 | (base64-encode-string |
| 96 | (format "%s:%s" user pass))))) | 96 | (format "%s:%s" user |
| 97 | (encode-coding-string pass 'utf-8)))))) | ||
| 97 | (symbol-value url-basic-auth-storage)))) | 98 | (symbol-value url-basic-auth-storage)))) |
| 98 | (byserv | 99 | (byserv |
| 99 | (setq retval (cdr-safe (assoc file byserv))) | 100 | (setq retval (cdr-safe (assoc file byserv))) |