couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [2/2] git commit: updated refs/heads/1.3.x to 869f42e
Date Mon, 06 May 2013 09:34:49 GMT
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/869f42e2
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/869f42e2
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/869f42e2

Branch: refs/heads/1.3.x
Commit: 869f42e2dfe018d098052c9fadafd79d43fdd998
Parents: 9d41ea8
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:24 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/869f42e2/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