summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/widgets
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2015-12-29 19:46:12 -0600
committerChris Buechler <cmb@pfsense.org>2015-12-29 19:46:12 -0600
commitdc6927bcc7d6a6817d6a52ab39098a6007421b94 (patch)
tree28a5ff10e10d014c2dcff824149005247fb1f7ac /src/usr/local/www/widgets
parent0f1a448374d3817cd693c0d611c8869e5f00e46d (diff)
downloadpfsense-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.php4
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;
OpenPOWER on IntegriCloud