summaryrefslogtreecommitdiffstats
path: root/usr/local/www/interfaces_opt.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/interfaces_opt.php')
-rwxr-xr-xusr/local/www/interfaces_opt.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/local/www/interfaces_opt.php b/usr/local/www/interfaces_opt.php
index 0189fa4..eb559cf 100755
--- a/usr/local/www/interfaces_opt.php
+++ b/usr/local/www/interfaces_opt.php
@@ -142,8 +142,10 @@ if ($_POST) {
}
if ($_POST['mtu'] && (($_POST['mtu'] < 576) || ($_POST['mtu'] > 1500))) {
$input_errors[] = "The MTU must be between 576 and 1500 bytes.";
+ }
+ if($_POST['bandwidth'] <> "" && !is_numeric($_POST['bandwidth'])) {
+ $input_errors[] = "A valid bandwidth value is required 1-999999.";
}
-
}
/* Wireless interface? */
OpenPOWER on IntegriCloud