More resilence when talking to plugin repo fixes #4135
commitf11d30144b67d43a881b90feb9d26c33af3c8c2f
authorAndreas Gohr <andi@splitbrain.org>
Mon, 8 Jan 2024 14:54:34 +0000 (8 15:54 +0100)
committerAndreas Gohr <andi@splitbrain.org>
Mon, 8 Jan 2024 14:54:34 +0000 (8 15:54 +0100)
tree517c8b5fe213e44b84bd8851b9c21fa4894456be
parentcd89aff0a8c3297f0a4ac3b3d63873b9d2393254
More resilence when talking to plugin repo fixes #4135

When the plugin repository answers but returns non-data (as can happen
when the database isn't available, as we have learned yesterday), the
extension manager still tried to deserialize the data.

This changes all communication from php-serialized to JSON encoded data.
When JSON-decoding fails, the data is ignored and an error message is
shown. Failure data like this will not be cached.
lib/plugins/extension/helper/repository.php
lib/plugins/extension/lang/en/lang.php