diff options
author | Ermal <eri@pfsense.org> | 2010-08-18 21:17:46 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-08-18 21:17:46 +0000 |
commit | 89c95943a2db96a4a251d6289b7ae545b0478dc7 (patch) | |
tree | add15a5eb93186ff28e054f635fed4e1bb3738d5 /usr/local/www/wizards/traffic_shaper_wizard.inc | |
parent | 849ea663250033819d91c29d8f2e2a5eda96a723 (diff) | |
download | pfsense-89c95943a2db96a4a251d6289b7ae545b0478dc7.zip pfsense-89c95943a2db96a4a251d6289b7ae545b0478dc7.tar.gz |
Also do the wizard optimizations and user-friendliness to the traffic_shaper_wizard_dedicated.xml
Diffstat (limited to 'usr/local/www/wizards/traffic_shaper_wizard.inc')
-rw-r--r-- | usr/local/www/wizards/traffic_shaper_wizard.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/wizards/traffic_shaper_wizard.inc b/usr/local/www/wizards/traffic_shaper_wizard.inc index 4057d73..61af8bf 100644 --- a/usr/local/www/wizards/traffic_shaper_wizard.inc +++ b/usr/local/www/wizards/traffic_shaper_wizard.inc @@ -39,8 +39,8 @@ function step1_submitphpaction() { $stepid--; return; } - if (intval($_POST['numberofconnections']) > 100 || intval($_POST['numberofconnections']) < 1) { - $savemsg=gettext("The number of connections supported is between 1 and 100."); + if (intval($_POST['numberofconnections']) < 1) { + $savemsg=gettext("The number of connections should be greater than 1."); $stepid--; return; } @@ -223,7 +223,7 @@ function step2_stepsubmitphpaction() { /* Input Validation */ $steps = intval($config['ezshaper']['step1']['numberofconnections']); for ($i = 0; $i < $steps; $i++) { - for ($j = $j; $j < $steps; $j++) { + for ($j = $i + 1; $j < $steps; $j++) { $wannum = $i+1; if ($_POST["conn{$i}interface"] == $_POST["conn{$j}interface"]) { $savemsg=gettext("You cannot select the same interface for WAN# {$wannum} and WAN #{$j}."); |