aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/App
diff options
context:
space:
mode:
authorGit'Fellow <12234510+solracsf@users.noreply.github.com>2024-09-13 10:55:33 +0200
committerGitHub <noreply@github.com>2024-09-13 10:55:33 +0200
commit413ba1a7183dee10149945e04a742d00679ae2c2 (patch)
treeda15fa2686f1465c16bc21283a1c2352be19c424 /lib/private/App
parentc9e4598360335d7eab0f4a5153dbf16a1f161351 (diff)
parentdccfb6d68ac7192b1bedcdfdbc077e28fab22605 (diff)
downloadnextcloud-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/private/App')
-rw-r--r--lib/private/App/AppStore/Fetcher/AppFetcher.php3
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 [];
}