commit | 50c153ac17fdb8f212d6505141588c2215e8d3fd | [log] [tgz] |
---|---|---|
author | Klaus Trainer <klaus_trainer@posteo.de> | Mon Aug 10 17:45:04 2015 +0200 |
committer | Klaus Trainer <klaus_trainer@posteo.de> | Mon Aug 10 17:45:04 2015 +0200 |
tree | bf2797867ce0cc9208979872200b3c170429eff1 | |
parent | 70146b470e92805ba4b8ac46260e8fd903569f1a [diff] |
Fix `user_db_name/1` Alphabetic characters must be in lower case.
diff --git a/src/couchdb_peruser.erl b/src/couchdb_peruser.erl index 9eff36c..f6cd59a 100644 --- a/src/couchdb_peruser.erl +++ b/src/couchdb_peruser.erl
@@ -138,7 +138,8 @@ end. user_db_name(User) -> - HexUser = list_to_binary([integer_to_list(X, 16) || <<X>> <= User]), + HexUser = list_to_binary( + [string:to_lower(integer_to_list(X, 16)) || <<X>> <= User]), <<?USERDB_PREFIX, HexUser/binary>>. handle_call(_Msg, _From, State) ->