Checking period value in /list/rrd/

This commit is contained in:
myvesta 2020-12-12 14:09:48 +01:00 committed by GitHub
parent f31b4b4d41
commit 81daa6413b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,6 +11,10 @@ if ($_SESSION['user'] != 'admin') {
exit;
}
if (!empty($_GET['period'])) {
if ($_GET['period']!="daily" && $_GET['period']!="weekly" && $_GET['period']!="monthly" && $_GET['period']!="yearly") unset($_GET['period']);
}
// Data
exec (VESTA_CMD."v-list-sys-rrd json", $output, $return_var);
$data = json_decode(implode('', $output), true);