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) {
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}
You can’t perform that action at this time.
0 commit comments