fix info hash validation on magnet edit #6

This commit is contained in:
ghost 2023-09-14 04:46:24 +03:00
parent c5c941c407
commit 535378fa64

View File

@ -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;