Browse Source
Merge pull request #47854 from nextcloud/validAppsFromAppStore
fix(appstore): Ensure returned apps from AppStore are valid
pull/47883/head
Git'Fellow
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
1 deletions
-
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 []; |
|
|
|
} |
|
|
|
|
|
|
|
|