diff options
author | Renato Botelho <renato@netgate.com> | 2015-11-23 08:35:41 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-11-23 08:35:41 -0200 |
commit | b959a4955ea90f865ff54cce2dd8fea29943a13c (patch) | |
tree | 7a1e92eae1013496fcae6b5ea70313b5fd165e20 | |
parent | ba144b19b50b8f60d6d17ef1bd9c5f2bb511c928 (diff) | |
download | pfsense-b959a4955ea90f865ff54cce2dd8fea29943a13c.zip pfsense-b959a4955ea90f865ff54cce2dd8fea29943a13c.tar.gz |
Tunable value can be zero, use isset() to validate it
-rw-r--r-- | src/usr/local/www/system_advanced_sysctl.php | 2 |
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."); |