fix torrent_info.php 404

This commit is contained in:
xiaomlove
2021-05-14 01:20:41 +08:00
parent 514294530c
commit 0742ed33f8
+1 -1
View File
@@ -72,7 +72,7 @@ if (!$id)
$res = sql_query("SELECT name FROM torrents WHERE id = ".sqlesc($id)) or sqlerr(__FILE__, __LINE__); $res = sql_query("SELECT name FROM torrents WHERE id = ".sqlesc($id)) or sqlerr(__FILE__, __LINE__);
$row = mysql_fetch_assoc($res); $row = mysql_fetch_assoc($res);
$fn = "$torrent_dir/$id.torrent"; $fn = getFullDirectory("$torrent_dir/$id.torrent");
if (!$row || !is_file($fn) || !is_readable($fn)) if (!$row || !is_file($fn) || !is_readable($fn))
httperr(); httperr();