From c08f18dc745d9c5884a67f4f4790afb6d8545cc6 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Sun, 26 Nov 2023 14:15:54 +0700 Subject: [PATCH] Revert "Update functions_torrent.php" This reverts commit 383e73da8d4c09c8baac55145c76b65f6c1e9eaf. --- library/includes/functions_torrent.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/library/includes/functions_torrent.php b/library/includes/functions_torrent.php index e91bc6bc..890841f8 100644 --- a/library/includes/functions_torrent.php +++ b/library/includes/functions_torrent.php @@ -326,13 +326,9 @@ function tracker_register ($attach_id, $mode = '', $tor_status = TOR_NOT_APPROVE // Exclude padding files [Only for hybrid torrents] if ((isset($f['attr']) ? $f['attr'] : null) !== 'p') { - $totallen += (isset($f['length']) && is_numeric($f['length'])) ? (float) $f['length'] : 'invalid_size'; + $totallen += (float) $f['length']; } } - if ($totallen === 'invalid_size') - { - torrent_error_exit($lang['TORFILE_INVALID']); - } } else {