summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-08-09 21:00:38 +0000
committerErmal <eri@pfsense.org>2011-08-09 21:00:50 +0000
commitd78df7b98c9e7a3f0dcaad4eac7d2d496763713c (patch)
tree9d0772a6d39cfb9704d55a188f31610ecbbf0592 /usr
parentae21b2891401674fdaa2422c6c1e286f39a78a93 (diff)
downloadpfsense-d78df7b98c9e7a3f0dcaad4eac7d2d496763713c.zip
pfsense-d78df7b98c9e7a3f0dcaad4eac7d2d496763713c.tar.gz
Make the checks during step4 and step5 actually work.
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/wizards/traffic_shaper_wizard.inc4
-rwxr-xr-xusr/local/www/wizards/traffic_shaper_wizard_dedicated.inc4
-rwxr-xr-xusr/local/www/wizards/traffic_shaper_wizard_multi_all.inc4
-rw-r--r--usr/local/www/wizards/traffic_shaper_wizard_multi_lan.inc4
4 files changed, 8 insertions, 8 deletions
diff --git a/usr/local/www/wizards/traffic_shaper_wizard.inc b/usr/local/www/wizards/traffic_shaper_wizard.inc
index 0ff0b5a..6a6927c 100644
--- a/usr/local/www/wizards/traffic_shaper_wizard.inc
+++ b/usr/local/www/wizards/traffic_shaper_wizard.inc
@@ -507,7 +507,7 @@ function step4_stepsubmitphpaction() {
return;
}
$bw = $_POST['bandwidth'];
- if($bw > 15 && $bw < 2) {
+ if($bw > 15 || $bw < 2) {
$savemsg="Values should be between 2% and 15%!";
$stepid--;
return;
@@ -538,7 +538,7 @@ function step5_stepsubmitphpaction() {
return;
}
$bw = $_POST['bandwidth'];
- if($bw > 15 && $bw < 2) {
+ if($bw > 15 || $bw < 2) {
$savemsg="Values should be between 2% and 15%!";
$stepid--;
return;
diff --git a/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc b/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc
index 44298d6..b4441ea 100755
--- a/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc
+++ b/usr/local/www/wizards/traffic_shaper_wizard_dedicated.inc
@@ -541,7 +541,7 @@ function step4_stepsubmitphpaction() {
return;
}
$bw = $_POST['bandwidth'];
- if($bw > 15 && $bw < 2) {
+ if($bw > 15 || $bw < 2) {
$savemsg="Values should be between 2% and 15%!";
$stepid--;
return;
@@ -570,7 +570,7 @@ function step5_stepsubmitphpaction() {
return;
}
$bw = $_POST['bandwidth'];
- if($bw > 15 && $bw < 2) {
+ if($bw > 15 || $bw < 2) {
$savemsg="Values should be between 2% and 15%!";
$stepid--;
return;
diff --git a/usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc b/usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc
index 7256282..c2215d4 100755
--- a/usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc
+++ b/usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc
@@ -576,7 +576,7 @@ function step4_stepsubmitphpaction() {
return;
}
$bw = $_POST['bandwidth'];
- if($bw > 15 && $bw < 2) {
+ if($bw > 15 || $bw < 2) {
$savemsg="Values should be between 2% and 15%!";
$stepid--;
return;
@@ -603,7 +603,7 @@ function step5_stepsubmitphpaction() {
return;
}
$bw = $_POST['bandwidth'];
- if($bw > 15 && $bw < 2) {
+ if($bw > 15 || $bw < 2) {
$savemsg="Values should be between 2% and 15%!";
$stepid--;
return;
diff --git a/usr/local/www/wizards/traffic_shaper_wizard_multi_lan.inc b/usr/local/www/wizards/traffic_shaper_wizard_multi_lan.inc
index db56f7a..7d47ed2 100644
--- a/usr/local/www/wizards/traffic_shaper_wizard_multi_lan.inc
+++ b/usr/local/www/wizards/traffic_shaper_wizard_multi_lan.inc
@@ -360,7 +360,7 @@ function step4_stepsubmitphpaction() {
return;
}
$bw = $_POST['bandwidth'];
- if($bw > 15 && $bw < 2) {
+ if($bw > 15 || $bw < 2) {
$savemsg="Values should be between 2% and 15%!";
$stepid--;
return;
@@ -394,7 +394,7 @@ function step5_stepsubmitphpaction() {
return;
}
$bw = $_POST['bandwidth'];
- if($bw > 15 && $bw < 2) {
+ if($bw > 15 || $bw < 2) {
$savemsg="Values should be between 2% and 15%!";
$stepid--;
return;
OpenPOWER on IntegriCloud