summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Newson <rnewson@apache.org>2011-01-28 20:16:21 +0000
committerRobert Newson <rnewson@apache.org>2011-01-28 20:16:21 +0000
commit52508a3442131a7af6fd32e95fffd5cb3ae7bffe (patch)
treed405a19ca0bc6456a7ba4b7e740ae3ae5f8b3ee3
parente9fa396941f2738f9ba10a4521f0415b2c612f1c (diff)
COUCHDB-969 - handle passwords with : in them.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.1.x@1064856 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/couchdb/couch_httpd_auth.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/couchdb/couch_httpd_auth.erl b/src/couchdb/couch_httpd_auth.erl
index a370ebdf..2111c009 100644
--- a/src/couchdb/couch_httpd_auth.erl
+++ b/src/couchdb/couch_httpd_auth.erl
@@ -53,6 +53,8 @@ basic_name_pw(Req) ->
nil;
[User, Pass] ->
{User, Pass};
+ [User | Pass] ->
+ {User, string:join(Pass, ":")};
[User] ->
{User, ""};
_ ->