1
0
Fork 0
mirror of https://github.com/ThomasGsp/HyperProxmox.git synced 2025-02-13 03:32:16 +00:00

Intval // XSS filter on date val

This commit is contained in:
Tlams 2018-02-18 18:17:40 +00:00
parent 15b7d84a36
commit db928ef7f3

View file

@ -19,17 +19,17 @@ $lastdate = "";
if(!empty($_POST['date']))
{
$html_dates = $html->List_Dates($_POST['date']);
$lastdate = $_POST['date'];
$lastdate = intval($_POST['date']);
}
else if(!empty($_GET['date']))
{
$html_dates = $html->List_Dates($_GET['date']);
$lastdate = $_GET['date'];
$lastdate = intval($_GET['date']);
}
else
{
$html_dates = $html->List_Dates();
$lastdate = json_decode($q->GET_Dates("last"), true)['value'];
$lastdate = intval(json_decode($q->GET_Dates("last"), true)['value']);
}
//$html_groups = $html->List_Groups($lastdate);