mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-15 05:00:49 +08:00
recover some $_GET & $POST variable keep be integer
This commit is contained in:
@@ -16,7 +16,7 @@ if ($passkey){
|
||||
die("account disabed or parked");
|
||||
elseif ($_GET['linktype'] == 'dl')
|
||||
$dllink = true;
|
||||
$inclbookmarked=$_GET['inclbookmarked'] ?? 0;
|
||||
$inclbookmarked=intval($_GET['inclbookmarked'] ?? 0);
|
||||
if($inclbookmarked == 1)
|
||||
{
|
||||
$bookmarkarray = return_torrent_bookmark_array($user['id']);
|
||||
@@ -30,7 +30,7 @@ $searchstr = mysql_real_escape_string(trim($_GET["search"] ?? ''));
|
||||
if (empty($searchstr))
|
||||
unset($searchstr);
|
||||
if (isset($searchstr)){
|
||||
$search_mode = $_GET["search_mode"] ?? 0;
|
||||
$search_mode = intval($_GET["search_mode"] ?? 0);
|
||||
if (!in_array($search_mode,array(0,1,2)))
|
||||
{
|
||||
$search_mode = 0;
|
||||
@@ -66,10 +66,10 @@ if (isset($searchstr)){
|
||||
}
|
||||
|
||||
$limit = "";
|
||||
$startindex = $_GET['startindex'] ?? 0;
|
||||
$startindex = intval($_GET['startindex'] ?? 0);
|
||||
if ($startindex)
|
||||
$limit .= $startindex.", ";
|
||||
$showrows = $_GET['rows'] ?? 0;
|
||||
$showrows = intval($_GET['rows'] ?? 0);
|
||||
if($showrows < 1 || $showrows > 50)
|
||||
$showrows = 10;
|
||||
$limit .= $showrows;
|
||||
|
||||
Reference in New Issue
Block a user