diff options
author | Adam Kocoloski <kocolosk@apache.org> | 2010-03-05 15:27:40 +0000 |
---|---|---|
committer | Adam Kocoloski <kocolosk@apache.org> | 2010-03-05 15:27:40 +0000 |
commit | 52c9cec5c6715139cf06a99be9779e2f677bceae (patch) | |
tree | 7fba34dda8fa303a0a5c494af5c74fd58200a4e1 /src/couchdb/couch_httpd_auth.erl | |
parent | bc80bcbf22a136d272c2a2dc2b4fdc1a046a2c32 (diff) |
use OTP base64 lib. Patch by Filipe Manana. Closes COUCHDB-681
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@919449 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_httpd_auth.erl')
-rw-r--r-- | src/couchdb/couch_httpd_auth.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/couch_httpd_auth.erl b/src/couchdb/couch_httpd_auth.erl index a1e8f11e..c4683af4 100644 --- a/src/couchdb/couch_httpd_auth.erl +++ b/src/couchdb/couch_httpd_auth.erl @@ -48,7 +48,7 @@ basic_name_pw(Req) -> AuthorizationHeader = header_value(Req, "Authorization"), case AuthorizationHeader of "Basic " ++ Base64Value -> - case string:tokens(?b2l(couch_util:decodeBase64(Base64Value)),":") of + case string:tokens(?b2l(base64:decode(Base64Value)),":") of ["_", "_"] -> % special name and pass to be logged out nil; |