From 4929a75179efe040a5ff9f842f819ed2cc6bde5d Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Wed, 27 Sep 2023 19:38:06 +0700 Subject: [PATCH] Added missing !defined('BB_ROOT') check (#917) --- library/includes/ucp/topic_watch.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/library/includes/ucp/topic_watch.php b/library/includes/ucp/topic_watch.php index 4ce7e0aa1..679b161e3 100644 --- a/library/includes/ucp/topic_watch.php +++ b/library/includes/ucp/topic_watch.php @@ -7,6 +7,10 @@ * @license https://github.com/torrentpier/torrentpier/blob/master/LICENSE MIT License */ +if (!defined('BB_ROOT')) { + die(basename(__FILE__)); +} + if (!$bb_cfg['topic_notify_enabled']) { bb_die($lang['DISABLED']); }