diff options
| author | 2025-09-27 14:40:35 +0200 | |
|---|---|---|
| committer | 2025-09-27 14:40:35 +0200 | |
| commit | 3a795eb5dbcd5b901d99a1b509a8c1a5746e8ea1 (patch) | |
| tree | 39ece831e0a28fab172a8b9451030bbfbf8d5d6f | |
| parent | 2da733b5cfde04c4cd8a091d4d7ee8e0d2622d84 (diff) | |
Fix regression in ext.php (#8021)
fix https://github.com/FreshRSS/Extensions/issues/370
Regression from https://github.com/FreshRSS/FreshRSS/pull/7857
| -rw-r--r-- | p/ext.php | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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}'"); |
