From 4b0d270c89ec06abed590504f6a0cb70076a9e59 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Wed, 15 Jan 2025 13:33:42 +0300 Subject: [PATCH] feat: Used `TORRENT_MIMETYPE` constant instead of hardcoded string (#1757) --- dl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dl.php b/dl.php index 5b8852a96..6a03631b3 100644 --- a/dl.php +++ b/dl.php @@ -161,7 +161,7 @@ if (!$authorised) { $datastore->rm('cat_forums'); // Check tor status -if (!IS_AM && str_contains($attachment['mimetype'], 'bittorrent')) { +if (!IS_AM && ($attachment['mimetype'] === TORRENT_MIMETYPE)) { $sql = 'SELECT tor_status, poster_id FROM ' . BB_BT_TORRENTS . ' WHERE attach_id = ' . (int)$attachment['attach_id']; if (!($result = DB()->sql_query($sql))) {