From a856e98a6afdc0f0d7952afbb37ad8df7685678b Mon Sep 17 00:00:00 2001 From: Noah Zoschke Date: Thu, 18 Feb 2010 18:26:04 -0800 Subject: [PATCH] remove double CGI escape when PUTting an attachment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcos Tapajós --- lib/couchrest/core/database.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/couchrest/core/database.rb b/lib/couchrest/core/database.rb index 825882d..1d2433c 100644 --- a/lib/couchrest/core/database.rb +++ b/lib/couchrest/core/database.rb @@ -107,7 +107,6 @@ module CouchRest # PUT an attachment directly to CouchDB def put_attachment(doc, name, file, options = {}) docid = escape_docid(doc['_id']) - name = CGI.escape(name) uri = url_for_attachment(doc, name) JSON.parse(HttpAbstraction.put(uri, file, options)) end