From 798e78d41ace0ac37c4f070b71a03d22074f5422 Mon Sep 17 00:00:00 2001 From: Wei Date: Mon, 22 Jun 2015 13:58:19 +0800 Subject: [PATCH] patch for utf-8 search --- lib/Parse.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Parse.js b/lib/Parse.js index 81c2418..18f6d40 100644 --- a/lib/Parse.js +++ b/lib/Parse.js @@ -52,7 +52,7 @@ Parse.prototype = { // check to see if there is a 'where' object in the query object // the 'where' object need to be stringified by JSON.stringify(), not querystring if ( query.hasOwnProperty('where') ) { - url += '?where=' + JSON.stringify(query.where); + url += '?where=' + encodeURIComponent(JSON.stringify(query.where)); delete query.where; }