A free, self-hostable news aggregator…
Use curl to fetch extensions list (#6767)
Alexandre Alapetite4f29b715efee
diff --git a/app/Controllers/extensionController.php b/app/Controllers/extensionController.phpindex 6a4d97bea..bf1f01c59 100644--- a/app/Controllers/extensionController.php+++ b/app/Controllers/extensionController.php@@ -44,10 +44,10 @@ class FreshRSS_extension_Controller extends FreshRSS_ActionController {*/protected function getAvailableExtensionList(): array {$extensionListUrl = 'https://raw.githubusercontent.com/FreshRSS/Extensions/master/extensions.json';- $json = @file_get_contents($extensionListUrl);+ $json = httpGet($extensionListUrl, CACHE_PATH . '/extension_list.json', 'json');// we ran into problems, simply ignore them- if ($json === false) {+ if ($json === '') {Minz_Log::error('Could not fetch available extension from GitHub');return [];}