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:16:22 UTC
svn commit: r1064856 -
/couchdb/branches/1.1.x/src/couchdb/couch_httpd_auth.erl
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, ""};
_ ->