Skip to content

Commit

Permalink
Merge branch 'master' of github-sfdc:developerforce/Force.com-JavaScr…
Browse files Browse the repository at this point in the history
…ipt-REST-Toolkit
  • Loading branch information
Pat Patterson committed Oct 6, 2015
2 parents fb34741 + f766bb0 commit 482d5b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions forcetk.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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);
}
}

0 comments on commit 482d5b7

Please sign in to comment.