diff options
author | Chris Buechler <cmb@pfsense.org> | 2015-12-29 19:46:12 -0600 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2015-12-29 19:46:12 -0600 |
commit | dc6927bcc7d6a6817d6a52ab39098a6007421b94 (patch) | |
tree | 28a5ff10e10d014c2dcff824149005247fb1f7ac /src/usr/local/www/widgets | |
parent | 0f1a448374d3817cd693c0d611c8869e5f00e46d (diff) | |
download | pfsense-dc6927bcc7d6a6817d6a52ab39098a6007421b94.zip pfsense-dc6927bcc7d6a6817d6a52ab39098a6007421b94.tar.gz |
Add output validation here too. Ticket #5351
Diffstat (limited to 'src/usr/local/www/widgets')
-rw-r--r-- | src/usr/local/www/widgets/widgets/traffic_graphs.widget.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr/local/www/widgets/widgets/traffic_graphs.widget.php b/src/usr/local/www/widgets/widgets/traffic_graphs.widget.php index 4d421ea..2360fc5 100644 --- a/src/usr/local/www/widgets/widgets/traffic_graphs.widget.php +++ b/src/usr/local/www/widgets/widgets/traffic_graphs.widget.php @@ -86,7 +86,7 @@ if (ipsec_enabled()) { } if ($_POST) { - if (isset($_POST["refreshinterval"]) && is_numeric($_POST["refreshinterval"])) { + if (isset($_POST["refreshinterval"]) && is_numericint($_POST["refreshinterval"])) { $a_config["refreshinterval"] = $_POST["refreshinterval"]; } @@ -117,7 +117,7 @@ if ($first_time) { $shown[$keys[0]] = true; } -if (isset($a_config["refreshinterval"])) { +if (isset($a_config["refreshinterval"]) && is_numericint($a_config["refreshinterval"])) { $refreshinterval = $a_config["refreshinterval"]; } else { $refreshinterval = 10; |