You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2011/01/28 21:11:43 UTC

svn commit: r1064854 - /couchdb/trunk/src/couchdb/couch_httpd_auth.erl

Author: rnewson
Date: Fri Jan 28 20:11:42 2011
New Revision: 1064854

URL: http://svn.apache.org/viewvc?rev=1064854&view=rev
Log:
COUCHDB-969 - handle passwords with : in them.

Modified:
    couchdb/trunk/src/couchdb/couch_httpd_auth.erl

Modified: couchdb/trunk/src/couchdb/couch_httpd_auth.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_httpd_auth.erl?rev=1064854&r1=1064853&r2=1064854&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_httpd_auth.erl (original)
+++ couchdb/trunk/src/couchdb/couch_httpd_auth.erl Fri Jan 28 20:11:42 2011
@@ -53,6 +53,8 @@ basic_name_pw(Req) ->
             nil;
         [User, Pass] ->
             {User, Pass};
+        [User | Pass] ->
+            {User, string:join(Pass, ":")};
         [User] ->
             {User, ""};
         _ ->