MDL-80516 core: more robust plugin update component checking.
commitb36e7ecce242119bdcc84fc135fd937976b3b1d4
authorPaul Holden <paulh@moodle.com>
Thu, 11 Jan 2024 20:45:40 +0000 (11 20:45 +0000)
committerPaul Holden <paulh@moodle.com>
Mon, 15 Jan 2024 14:10:10 +0000 (15 14:10 +0000)
tree5fa3a9ccd35ed873af382d97bb281a65954038e2
parent287cfcbe831e20c5783dec8b48b4ffe33599f5ef
MDL-80516 core: more robust plugin update component checking.

Occurs when a plugin in incorrectly removed (via file system only,
rather than following proper uninstall process), and also contains
it's own sub-plugins.

In the above scenario, the update would request and receive back a
response for a plugin whose name was comprised of an empty string,
subsequently causing errors when processing said response.
lib/classes/plugin_manager.php
lib/classes/update/checker.php