From bf4426fa10a8a7a148c8c7ef927a59878885324d Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Tue, 26 Jan 2021 21:52:33 -0800 Subject: [PATCH] APIExplorer - Fix URL encoding in REST examples --- templates/CRM/Admin/Page/APIExplorer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/CRM/Admin/Page/APIExplorer.js b/templates/CRM/Admin/Page/APIExplorer.js index 4d6df95b2b..45172a1b90 100644 --- a/templates/CRM/Admin/Page/APIExplorer.js +++ b/templates/CRM/Admin/Page/APIExplorer.js @@ -706,7 +706,7 @@ cv: "cv api " + entity + '.' + action + ' ', drush: "drush cvapi " + entity + '.' + action + ' ', wpcli: "wp cv api " + entity + '.' + action + ' ', - rest: CRM.config.resourceBase + "extern/rest.php?entity=" + entity + "&action=" + action + "&api_key=userkey&key=sitekey&json=" + JSON.stringify(params) + rest: CRM.config.resourceBase + "extern/rest.php?entity=" + encodeURI(entity) + "&action=" + encodeURI(action) + "&api_key=FIXME_USER_KEY&key=FIXME_SITE_KEY&json=" + encodeURI(JSON.stringify(params)) }; smartyPhp = []; $.each(params, function(key, value) { -- 2.25.1