mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
redundant check - is_numericint() tests for >= 0
This commit is contained in:
parent
01b5410ae8
commit
f208e9690e
@ -64,7 +64,7 @@
|
||||
require("guiconfig.inc");
|
||||
|
||||
if (isset($_POST['backupcount'])) {
|
||||
if (is_numericint($_POST['backupcount']) && ($_POST['backupcount'] >= 0)) {
|
||||
if (is_numericint($_POST['backupcount'])) {
|
||||
$config['system']['backupcount'] = $_POST['backupcount'];
|
||||
$changedescr = $config['system']['backupcount'];
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user