From 54c512e0fccd46244cca7e1fdc39a2a8bface9a6 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Tue, 26 Aug 2014 13:27:59 +0100 Subject: [PATCH] API explorer - escape special character from php syntax - global --- 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 03857c1de6..3f9942f0f4 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).replace('$', '\\$'); + return JSON.stringify(val).replace(/\$/g, '\\$'); } /** -- 2.25.1