From bfdf1729923c72facab81d2499ea72ce039594ad Mon Sep 17 00:00:00 2001 From: Neo-CTC <92761505+Neo-CTC@users.noreply.github.com> Date: Sun, 16 Feb 2025 00:09:45 -0600 Subject: [PATCH] [ticket/17470] Feed enable config not enforced The 'feed_enable' config is never checked before generating the feeds. The effective result is that feeds are always enabled, regardless of the setting. PHPBB-17470 --- phpBB/phpbb/feed/controller/feed.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/phpBB/phpbb/feed/controller/feed.php b/phpBB/phpbb/feed/controller/feed.php index 7e88f18a98..b65e1d9c9b 100644 --- a/phpBB/phpbb/feed/controller/feed.php +++ b/phpBB/phpbb/feed/controller/feed.php @@ -123,6 +123,12 @@ class feed $this->template = $twig; $this->language = $language; $this->phpbb_dispatcher = $phpbb_dispatcher; + + // Feeds are disabled, no need to continue + if (!$this->config['feed_enable']) + { + $this->send_unavailable(); + } } /**