summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorstilez <stilez@users.noreply.github.com>2016-01-09 08:03:57 +0000
committerstilez <stilez@users.noreply.github.com>2016-01-09 08:03:57 +0000
commitf1439721a6d7a2d0a694bcafa6e5c550fbce0344 (patch)
treefe1b0275d5f2d4c5749b587fcc6766bbfe4869e4 /src
parent7c1747a3aa2c5a6a49bf31e11e0058e66bc1ed6a (diff)
downloadpfsense-f1439721a6d7a2d0a694bcafa6e5c550fbce0344.zip
pfsense-f1439721a6d7a2d0a694bcafa6e5c550fbce0344.tar.gz
SImplify a recent-added validation test
numericint is the standard test for numeric && >=0
Diffstat (limited to 'src')
-rw-r--r--src/usr/local/www/services_pppoe_edit.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/usr/local/www/services_pppoe_edit.php b/src/usr/local/www/services_pppoe_edit.php
index e34fcb0..1a4b216 100644
--- a/src/usr/local/www/services_pppoe_edit.php
+++ b/src/usr/local/www/services_pppoe_edit.php
@@ -160,9 +160,7 @@ if ($_POST) {
if (!is_numericint($_POST['n_pppoe_units']) || $_POST['n_pppoe_units'] > 255) {
$input_errors[] = gettext("Number of PPPoE users must be between 1 and 255");
}
- if (!is_numeric($_POST['pppoe_subnet']) ||
- $_POST['pppoe_subnet'] < 0 ||
- $_POST['pppoe_subnet'] > 32) {
+ if (!is_numericint($_POST['pppoe_subnet']) || $_POST['pppoe_subnet'] > 32) {
$input_errors[] = gettext("Subnet mask must be an interger between 0 and 32");
}
OpenPOWER on IntegriCloud