couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [1/2] git commit: updated refs/heads/master to 6510766
Date Mon, 06 May 2013 09:34:48 GMT
Updated Branches:
  refs/heads/1.3.x 9d41ea8a4 -> 869f42e2d
  refs/heads/master d27104261 -> 65107660f


COUCHDB-1788 - tolerate undefined source/target when reading _replicator docs


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/65107660
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/65107660
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/65107660

Branch: refs/heads/master
Commit: 65107660fa11b05d69476b76e69c66486b44bfea
Parents: d271042
Author: Robert Newson <rnewson@apache.org>
Authored: Mon May 6 10:34:04 2013 +0100
Committer: Robert Newson <rnewson@apache.org>
Committed: Mon May 6 10:34:04 2013 +0100

----------------------------------------------------------------------
 .../src/couch_replicator_manager.erl               |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/65107660/src/couch_replicator/src/couch_replicator_manager.erl
----------------------------------------------------------------------
diff --git a/src/couch_replicator/src/couch_replicator_manager.erl b/src/couch_replicator/src/couch_replicator_manager.erl
index fec44df..bbb0e11 100644
--- a/src/couch_replicator/src/couch_replicator_manager.erl
+++ b/src/couch_replicator/src/couch_replicator_manager.erl
@@ -692,6 +692,8 @@ after_doc_read(#doc{body = {Body}} = Doc, #db{user_ctx=UserCtx} = Db)
->
     end.
 
 
+strip_credentials(undefined) ->
+    undefined;
 strip_credentials(Url) when is_binary(Url) ->
     re:replace(Url,
         "http(s)?://(?:[^:]+):[^@]+@(.*)$",


Mime
View raw message