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:57 +0000 (16:16 +1000)
commit612aa103e22f53abd74465f746e6e790e9226314
tree4d4f7163f14e31d05c36defd541044fec61231cb
parenta6605c89f001671b6b4ab41cf9401ce603d6d24b
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