summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorRobert Newson <robert.newson@cloudant.com>2011-05-05 18:11:40 +0100
committerRobert Newson <robert.newson@cloudant.com>2011-05-05 18:11:40 +0100
commit2ba9419cc659bf4cb633f66a76f9789fb7a526fe (patch)
tree19f1e2df9bd5de7f757179158bdadc9abdde87f3 /apps
parentfeaf729734032a59cb1f83f8dddfaabcdb44e914 (diff)
Allow : in passwords (COUCHDB-969)
Diffstat (limited to 'apps')
-rw-r--r--apps/couch/src/couch_httpd_auth.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/couch/src/couch_httpd_auth.erl b/apps/couch/src/couch_httpd_auth.erl
index 7023e7f3..752fbef1 100644
--- a/apps/couch/src/couch_httpd_auth.erl
+++ b/apps/couch/src/couch_httpd_auth.erl
@@ -53,8 +53,8 @@ basic_name_pw(Req) ->
nil;
[User, Pass] ->
{User, Pass};
- [User] ->
- {User, ""};
+ [User | Pass] ->
+ {User, string:join(Pass, ":")};
_ ->
nil
end;