From 87b497e32a14162d1335ab4d39aa229087dde717 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Sun, 27 Aug 2023 19:00:48 +0700 Subject: [PATCH] Minor improvements (#867) --- bt/announce.php | 2 +- bt/scrape.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bt/announce.php b/bt/announce.php index ee70f9a2b..8b98fc756 100644 --- a/bt/announce.php +++ b/bt/announce.php @@ -64,7 +64,7 @@ $passkey = ${$passkey_key} ?? null; // Verify request // Required params (info_hash, peer_id, port, uploaded, downloaded, left, passkey) if (!isset($info_hash)) { - msg_die('info_hash does not exists'); + msg_die('info_hash does not exist'); } if (!isset($peer_id) || strlen($peer_id) != 20) { msg_die('Invalid peer_id'); diff --git a/bt/scrape.php b/bt/scrape.php index af6128941..531758a57 100644 --- a/bt/scrape.php +++ b/bt/scrape.php @@ -25,8 +25,9 @@ if (isset($_GET['?info_hash']) && !isset($_GET['info_hash'])) { $is_bt_v2 = null; $info_hash = isset($_GET['info_hash']) ? (string)$_GET['info_hash'] : null; +// Verify info_hash if (!isset($info_hash)) { - msg_die('info_hash does not exists'); + msg_die('info_hash does not exist'); } // Check info_hash version