From 535378fa6483b2824a917c84eb8012166e042cee Mon Sep 17 00:00:00 2001 From: ghost Date: Thu, 14 Sep 2023 04:46:24 +0300 Subject: [PATCH] fix info hash validation on magnet edit #6 --- src/public/edit.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/public/edit.php b/src/public/edit.php index e07d3b3..07cadc1 100644 --- a/src/public/edit.php +++ b/src/public/edit.php @@ -276,7 +276,7 @@ else { { case 1: - if (!empty($value)) + if (!empty($value) && Yggverse\Parser\Magnet::isXTv1($value)) { $exist = false; @@ -306,7 +306,7 @@ else { case 2: - if (!empty($value)) + if (!empty($value) && Yggverse\Parser\Magnet::isXTv2($value)) { $exist = false;