File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -562,7 +562,7 @@ if (forcetk.Client === undefined) {
562
562
* @param [error=null] function to which jqXHR will be passed in case of error
563
563
*/
564
564
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 )
566
566
, callback , error ) ;
567
567
}
568
568
@@ -598,7 +598,7 @@ if (forcetk.Client === undefined) {
598
598
* @param [error=null] function to which jqXHR will be passed in case of error
599
599
*/
600
600
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 )
602
602
, callback , error ) ;
603
603
}
604
604
}
You can’t perform that action at this time.
0 commit comments