diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-07-24 17:28:39 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-07-24 18:28:01 -0300 |
commit | dad05dac2324c9572d7617a9a320e0e62d4b359b (patch) | |
tree | 70c76ab6de35de45a8decf2a47957ababb96be5c | |
parent | 070aeff3b72fb2a5627f933b6595b2489f946b71 (diff) | |
download | pfsense-dad05dac2324c9572d7617a9a320e0e62d4b359b.zip pfsense-dad05dac2324c9572d7617a9a320e0e62d4b359b.tar.gz |
Fix number of WAN and LAN connections check
-rw-r--r-- | usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc | 12 |
1 files changed, 11 insertions, 1 deletions
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 20fc71e..aa801ef 100644 --- a/usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc +++ b/usr/local/www/wizards/traffic_shaper_wizard_multi_all.inc @@ -36,11 +36,21 @@ function step1_submitphpaction() { if (!isset($_POST['numberofconnections'])) { $savemsg=gettext("You need to specify the number of connections."); $stepid--; + return; + } + if (intval($_POST['numberofconnections']) < 1) { + $savemsg=gettext("The number of connections should be greater than 1."); + $stepid--; + return; + } + + if (!isset($_POST['numberoflocalinterfaces'])) { + $savemsg=gettext("You need to specify the number of LAN type interfaces."); $stepid--; return; } if (intval($_POST['numberoflocalinterfaces']) < 1) { - $savemsg=gettext("The number of connections should be greater than 1."); + $savemsg=gettext("The number of LAN type interfaces should be greater than 1."); $stepid--; return; } |