diff options
Diffstat (limited to 'usr/local/www/interfaces_opt.php')
-rwxr-xr-x | usr/local/www/interfaces_opt.php | 4 |
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? */ |