couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject svn commit: r1064856 - /couchdb/branches/1.1.x/src/couchdb/couch_httpd_auth.erl
Date Fri, 28 Jan 2011 20:16:22 GMT
Author: rnewson
Date: Fri Jan 28 20:16:21 2011
New Revision: 1064856

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

Modified:
    couchdb/branches/1.1.x/src/couchdb/couch_httpd_auth.erl

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



Mime
View raw message