From dbfc15fef4dcff97d44991454d62a70822b32753 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Tue, 26 Aug 2014 13:21:11 +0100 Subject: [PATCH] API explorer - escape special character from php syntax --- 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 3c101d7ff0..03857c1de6 100644 --- a/templates/CRM/Admin/Page/APIExplorer.js +++ b/templates/CRM/Admin/Page/APIExplorer.js @@ -238,7 +238,7 @@ }); return 'array(' + ret + ')'; } - return JSON.stringify(val); + return JSON.stringify(val).replace('$', '\\$'); } /** -- 2.25.1