couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject svn commit: r1064854 - /couchdb/trunk/src/couchdb/couch_httpd_auth.erl
Date Fri, 28 Jan 2011 20:11:43 GMT
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, ""};
         _ ->



Mime
View raw message