From 3fb99b4076dd26baecbbf89d5ecfc630ed11de3d Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Wed, 4 Sep 2024 18:48:44 +0700 Subject: [PATCH] Update ffprobe_info.php --- library/ajax/ffprobe_info.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/library/ajax/ffprobe_info.php b/library/ajax/ffprobe_info.php index 755d558ab..556e81f1d 100644 --- a/library/ajax/ffprobe_info.php +++ b/library/ajax/ffprobe_info.php @@ -17,11 +17,13 @@ if (!$bb_cfg['torr_server']['enabled']) { $this->ajax_die($lang['MODULE_OFF']); } -if (!$attach_id = (int)$this->request['attach_id'] or !is_numeric($attach_id)) { +$attach_id = $this->request['attach_id']; +if (empty($attach_id) || !is_numeric($attach_id)) { $this->ajax_die($lang['INVALID_ATTACH_ID']); } -if (!$file_index = (int)$this->request['file_index'] or !is_numeric($file_index)) { +$file_index = $this->request['file_index']; +if (empty($file_index) || !is_numeric($file_index)) { $this->ajax_die("Invalid file index: $file_index"); }