diff options
author | Git'Fellow <12234510+solracsf@users.noreply.github.com> | 2024-09-13 10:55:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-13 10:55:33 +0200 |
commit | 413ba1a7183dee10149945e04a742d00679ae2c2 (patch) | |
tree | da15fa2686f1465c16bc21283a1c2352be19c424 /lib | |
parent | c9e4598360335d7eab0f4a5153dbf16a1f161351 (diff) | |
parent | dccfb6d68ac7192b1bedcdfdbc077e28fab22605 (diff) | |
download | nextcloud-server-413ba1a7183dee10149945e04a742d00679ae2c2.tar.gz nextcloud-server-413ba1a7183dee10149945e04a742d00679ae2c2.zip |
Merge pull request #47854 from nextcloud/validAppsFromAppStore
fix(appstore): Ensure returned apps from AppStore are valid
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/App/AppStore/Fetcher/AppFetcher.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/App/AppStore/Fetcher/AppFetcher.php b/lib/private/App/AppStore/Fetcher/AppFetcher.php index 676638f69df..4ef0b1eb51b 100644 --- a/lib/private/App/AppStore/Fetcher/AppFetcher.php +++ b/lib/private/App/AppStore/Fetcher/AppFetcher.php @@ -53,7 +53,8 @@ class AppFetcher extends Fetcher { /** @var mixed[] $response */ $response = parent::fetch($ETag, $content); - if (empty($response)) { + if (!isset($response['data']) || $response['data'] === null) { + $this->logger->warning('Response from appstore is invalid, apps could not be retrieved. Try again later.', ['app' => 'appstoreFetcher']); return []; } |