diff options
author | Renato Botelho <renato@netgate.com> | 2016-01-12 09:09:27 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-01-12 09:09:27 -0200 |
commit | 6c8e76d4318f4860745374ac32d9a16543034e34 (patch) | |
tree | 3f0058080a428d19ee1701e2257373bf536a0609 /src | |
parent | e1513846641c990c5f97e53f3565379c85413b6a (diff) | |
parent | f1439721a6d7a2d0a694bcafa6e5c550fbce0344 (diff) | |
download | pfsense-6c8e76d4318f4860745374ac32d9a16543034e34.zip pfsense-6c8e76d4318f4860745374ac32d9a16543034e34.tar.gz |
Merge pull request #2391 from stilez/patch-7
Diffstat (limited to 'src')
-rw-r--r-- | src/usr/local/www/services_pppoe_edit.php | 4 |
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"); } |