CRM_Utils_JS - Improve validation of strings
authorColeman Watts <coleman@civicrm.org>
Thu, 28 May 2020 19:08:43 +0000 (15:08 -0400)
committerSeamus Lee <seamuslee001@gmail.com>
Wed, 19 Aug 2020 06:16:45 +0000 (16:16 +1000)
commit1ae350ced4a22fc003a1f39399e44b006a4e44b5
treed462eaabd9cec212bcb80ec5fab730e1e6c9cb1f
parent34f45c58bf3ce2b5505d8768ac684b26f027740d
CRM_Utils_JS - Improve validation of strings

Runs strings through json_decode to ensure they are valid.
Optionally throws an exception on error.
CRM/Utils/JS.php
tests/phpunit/CRM/Utils/JSTest.php