From 81daa6413b187d0a26a516dda937a39eef72f976 Mon Sep 17 00:00:00 2001 From: myvesta <38690722+myvesta@users.noreply.github.com> Date: Sat, 12 Dec 2020 14:09:48 +0100 Subject: [PATCH] Checking period value in /list/rrd/ --- web/list/rrd/index.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/list/rrd/index.php b/web/list/rrd/index.php index 7a13b78b..2c30b530 100644 --- a/web/list/rrd/index.php +++ b/web/list/rrd/index.php @@ -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);