From 3a795eb5dbcd5b901d99a1b509a8c1a5746e8ea1 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sat, 27 Sep 2025 14:40:35 +0200 Subject: Fix regression in ext.php (#8021) fix https://github.com/FreshRSS/Extensions/issues/370 Regression from https://github.com/FreshRSS/FreshRSS/pull/7857 --- p/ext.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'p/ext.php') diff --git a/p/ext.php b/p/ext.php index 4ee9eb1ae..2150f54e8 100644 --- a/p/ext.php +++ b/p/ext.php @@ -91,6 +91,12 @@ if (!is_valid_path($absolute_filename)) { sendBadRequestResponse('File is not supported.'); } +FreshRSS_Context::initSystem(); +if (!FreshRSS_Context::hasSystemConf()) { + header('HTTP/1.1 500 Internal Server Error'); + die('Invalid system init!'); +} + $content_type = FreshRSS_extension_Controller::MIME_TYPES[$file_type]; header("Content-Type: {$content_type}"); header("Content-Disposition: inline; filename='{$file_name}'"); -- cgit v1.2.3