You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2014/02/06 18:19:00 UTC

[02/26] couch-replicator commit: updated refs/heads/import-rcouch to 589d958

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


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

Branch: refs/heads/import-rcouch
Commit: 7c9704c449a1883843491ab68c34a1b7b92f28c9
Parents: 01e49b4
Author: Robert Newson <rn...@apache.org>
Authored: Mon May 6 10:34:04 2013 +0100
Committer: Robert Newson <rn...@apache.org>
Committed: Mon May 6 10:34:04 2013 +0100

----------------------------------------------------------------------
 src/couch_replicator_manager.erl | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/blob/7c9704c4/src/couch_replicator_manager.erl
----------------------------------------------------------------------
diff --git a/src/couch_replicator_manager.erl b/src/couch_replicator_manager.erl
index fec44df..bbb0e11 100644
--- a/src/couch_replicator_manager.erl
+++ b/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)?://(?:[^:]+):[^@]+@(.*)$",