Permalink
Browse files

added missing `escapePath()`

  • Loading branch information...
1 parent 89c04ea commit 49f2216255587ad0fd7523f38afdfaaf89af3e85 @fent fent committed Apr 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/dropbox-node.js
View
@@ -218,7 +218,7 @@ DropboxClient.prototype.move = function(from_path, to_path, optargs, cb) {
// See https://www.dropbox.com/developers/reference/api#search
DropboxClient.prototype.search = function(path, query, optargs, cb) {
if (typeof optargs === 'function') cb = optargs, optargs = {};
- var uri = API_URI + '/search/dropbox/' + path + '?' +
+ var uri = API_URI + '/search/dropbox/' + escapePath(path) + '?' +
querystring.stringify({query: query});
this.get(uri, optargs, cb);
}

0 comments on commit 49f2216

Please sign in to comment.