MDL-77783 core: Validate sublugins.json
commit13fec4131efacde35d02ab3f9abaee8379e8c6d2
authorJun Pataleta <jun@moodle.com>
Wed, 29 Mar 2023 00:35:30 +0000 (29 08:35 +0800)
committerJun Pataleta <jun@moodle.com>
Wed, 29 Mar 2023 01:29:51 +0000 (29 09:29 +0800)
treed7ea048bd9a4fa76a916d5f11e21a79ebaa0c05a
parent6273e6fdf337943559d53125015dbeb091cad1d3
MDL-77783 core: Validate sublugins.json

* Validate the decoded subplugins.json before processing it.
* Log errors if subplugins.json is invalid or if plugintypes is not
defined.
lib/classes/component.php