summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/system_advanced_sysctl.php
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2015-11-23 08:35:41 -0200
committerRenato Botelho <renato@netgate.com>2015-11-23 08:35:41 -0200
commitb959a4955ea90f865ff54cce2dd8fea29943a13c (patch)
tree7a1e92eae1013496fcae6b5ea70313b5fd165e20 /src/usr/local/www/system_advanced_sysctl.php
parentba144b19b50b8f60d6d17ef1bd9c5f2bb511c928 (diff)
downloadpfsense-b959a4955ea90f865ff54cce2dd8fea29943a13c.zip
pfsense-b959a4955ea90f865ff54cce2dd8fea29943a13c.tar.gz
Tunable value can be zero, use isset() to validate it
Diffstat (limited to 'src/usr/local/www/system_advanced_sysctl.php')
-rw-r--r--src/usr/local/www/system_advanced_sysctl.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/local/www/system_advanced_sysctl.php b/src/usr/local/www/system_advanced_sysctl.php
index 8e44eed..f0fd2ea 100644
--- a/src/usr/local/www/system_advanced_sysctl.php
+++ b/src/usr/local/www/system_advanced_sysctl.php
@@ -143,7 +143,7 @@ if ($_POST) {
$tunableent = array();
- if(!$_POST['tunable'] || !$_POST['value']) {
+ if(!$_POST['tunable'] || !isset($_POST['value'])) {
$input_errors[] = gettext("Both a name and a value must be specified.");
} else if (!ctype_alnum($_POST['value'])) {
$input_errors[] = gettext("The value may contain alphanumeric characters only.");
OpenPOWER on IntegriCloud