From 21fc2ebcbf49cdbc8a81442e50072f5c88e80965 Mon Sep 17 00:00:00 2001 From: Adam Kocoloski Date: Wed, 15 Apr 2009 21:21:23 +0000 Subject: URL-encode attachment paths during replication git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@765364 13f79535-47bb-0310-9956-ffa450edef68 --- src/couchdb/couch_rep.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/couchdb') diff --git a/src/couchdb/couch_rep.erl b/src/couchdb/couch_rep.erl index afb947e7..9d100d1f 100644 --- a/src/couchdb/couch_rep.erl +++ b/src/couchdb/couch_rep.erl @@ -372,7 +372,7 @@ attachment_loop(ReqId) -> attachment_stub_converter(DbS, Id, {Name, {stub, Type, Length}}) -> #http_db{uri=DbUrl, headers=Headers} = DbS, % TODO worry about revisions - Url = DbUrl ++ url_encode(Id) ++ "/" ++ ?b2l(Name), + Url = DbUrl ++ url_encode(Id) ++ "/" ++ url_encode(?b2l(Name)), ?LOG_DEBUG("Attachment URL ~p", [Url]), {ok, RcvFun} = make_attachment_stub_receiver(Url, Headers, Name, Type, Length), -- cgit v1.2.3