From 5dc9a5475c051911c579ea732ef52d7feb78e8ac Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Sun, 2 Mar 2025 23:57:56 +0700 Subject: [PATCH] misc(_cleanup.php): Added CLI mode check (#1834) --- _cleanup.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/_cleanup.php b/_cleanup.php index c9d0da4e6..3c223d399 100644 --- a/_cleanup.php +++ b/_cleanup.php @@ -7,6 +7,10 @@ * @license https://github.com/torrentpier/torrentpier/blob/master/LICENSE MIT License */ +if (php_sapi_name() !== 'cli') { + exit; +} + define('BB_ROOT', __DIR__ . DIRECTORY_SEPARATOR); $items = [