summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/interfaces.php3
-rwxr-xr-xusr/local/www/interfaces_lan.php3
-rwxr-xr-xusr/local/www/interfaces_opt.php4
-rwxr-xr-xusr/local/www/interfaces_wan.php3
4 files changed, 12 insertions, 1 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php
index 3bcb47e..30b8388 100755
--- a/usr/local/www/interfaces.php
+++ b/usr/local/www/interfaces.php
@@ -168,6 +168,9 @@ 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? */
if (isset($wancfg['wireless'])) {
diff --git a/usr/local/www/interfaces_lan.php b/usr/local/www/interfaces_lan.php
index 0f99a6c..e6d7384 100755
--- a/usr/local/www/interfaces_lan.php
+++ b/usr/local/www/interfaces_lan.php
@@ -90,6 +90,9 @@ if ($_POST) {
if (($_POST['subnet'] && !is_numeric($_POST['subnet']))) {
$input_errors[] = "A valid subnet bit count must be specified.";
}
+ if($_POST['bandwidth'] <> "" && !is_numeric($_POST['bandwidth'])) {
+ $input_errors[] = "A valid bandwidth value is required 1-999999.";
+ }
/* Wireless interface? */
if (isset($lancfg['wireless'])) {
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? */
diff --git a/usr/local/www/interfaces_wan.php b/usr/local/www/interfaces_wan.php
index 3bcb47e..30b8388 100755
--- a/usr/local/www/interfaces_wan.php
+++ b/usr/local/www/interfaces_wan.php
@@ -168,6 +168,9 @@ 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? */
if (isset($wancfg['wireless'])) {
OpenPOWER on IntegriCloud