mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 03:57:22 +08:00
recover some $_GET & $POST variable keep be integer
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@ require_once(get_langfile_path());
|
||||
loggedinorreturn();
|
||||
if ($_SERVER["REQUEST_METHOD"] == "POST")
|
||||
{
|
||||
$torrentid = $_POST['id'] ?? 0;
|
||||
$torrentid = intval($_POST['id'] ?? 0);
|
||||
$type = $_POST['type'];
|
||||
$hidenotice = $_POST['hidenotice'];
|
||||
if (!$torrentid || !in_array($type,array('firsttime', 'client', 'ratio')))
|
||||
|
||||
Reference in New Issue
Block a user