From 21e7ab9ed0b3ced69316c7ef60e6dac769b2fb9a Mon Sep 17 00:00:00 2001 From: Menno Vanderlist Date: Fri, 10 Jul 2015 09:27:11 -0600 Subject: [PATCH] Replaced escape(soql) and escape(sosl) Fix to support umlaut and other European charaters Replaced with encodeURIComponent(soql) and encodeURIComponent(sosl) --- forcetk.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/forcetk.js b/forcetk.js index eef5ac7..eb1d7f2 100644 --- a/forcetk.js +++ b/forcetk.js @@ -562,7 +562,7 @@ if (forcetk.Client === undefined) { * @param [error=null] function to which jqXHR will be passed in case of error */ forcetk.Client.prototype.query = function(soql, callback, error) { - return this.ajax('/' + this.apiVersion + '/query?q=' + escape(soql) + return this.ajax('/' + this.apiVersion + '/query?q=' + encodeURIComponent(soql) , callback, error); } @@ -598,7 +598,7 @@ if (forcetk.Client === undefined) { * @param [error=null] function to which jqXHR will be passed in case of error */ forcetk.Client.prototype.search = function(sosl, callback, error) { - return this.ajax('/' + this.apiVersion + '/search?q=' + escape(sosl) + return this.ajax('/' + this.apiVersion + '/search?q=' + encodeURIComponent(sosl) , callback, error); } }