Skip to content

Commit 482d5b7

Browse files
author
Pat Patterson
committed
Merge branch 'master' of github-sfdc:developerforce/Force.com-JavaScript-REST-Toolkit
2 parents fb34741 + f766bb0 commit 482d5b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

forcetk.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ if (forcetk.Client === undefined) {
562562
* @param [error=null] function to which jqXHR will be passed in case of error
563563
*/
564564
forcetk.Client.prototype.query = function(soql, callback, error) {
565-
return this.ajax('/' + this.apiVersion + '/query?q=' + escape(soql)
565+
return this.ajax('/' + this.apiVersion + '/query?q=' + encodeURIComponent(soql)
566566
, callback, error);
567567
}
568568

@@ -598,7 +598,7 @@ if (forcetk.Client === undefined) {
598598
* @param [error=null] function to which jqXHR will be passed in case of error
599599
*/
600600
forcetk.Client.prototype.search = function(sosl, callback, error) {
601-
return this.ajax('/' + this.apiVersion + '/search?q=' + escape(sosl)
601+
return this.ajax('/' + this.apiVersion + '/search?q=' + encodeURIComponent(sosl)
602602
, callback, error);
603603
}
604604
}

0 commit comments

Comments
 (0)