summaryrefslogtreecommitdiffstats
path: root/usr/local/www/wizards
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-05-17 22:38:01 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-05-17 22:38:01 +0000
commit8cb954893577ed40fa033f5a733b5158e4c46f7a (patch)
tree749d39fd6d570c96ba740926d5b4ce7209b0e60e /usr/local/www/wizards
parentfa4a625342319ce3f2c1e2ca57eeadd8b08ba675 (diff)
downloadpfsense-8cb954893577ed40fa033f5a733b5158e4c46f7a.zip
pfsense-8cb954893577ed40fa033f5a733b5158e4c46f7a.tar.gz
Do not allow upload or download speeds to be blank.
Diffstat (limited to 'usr/local/www/wizards')
-rw-r--r--usr/local/www/wizards/traffic_shaper_wizard.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/usr/local/www/wizards/traffic_shaper_wizard.inc b/usr/local/www/wizards/traffic_shaper_wizard.inc
index aa8d83c..b851708 100644
--- a/usr/local/www/wizards/traffic_shaper_wizard.inc
+++ b/usr/local/www/wizards/traffic_shaper_wizard.inc
@@ -47,6 +47,11 @@ function step2_stepsubmitphpaction() {
header("Location: /wizard.php?xml=traffic_shaper_wizard.xml&amp;stepid={$stepid}&amp;message={$message}");
exit;
}
+ if ($_POST['download'] == "" or $_POST['upload]'] == "") {
+ $message="Upload or download speeds cannot be empty!";
+ header("Location: /wizard.php?xml=traffic_shaper_wizard.xml&amp;stepid={$stepid}&amp;message={$message}");
+ exit;
+ }
$downq = "q" . convert_friendly_interface_to_friendly_descr($config['ezshaper']['step2']['inside_int']);
$upq = "q" . convert_friendly_interface_to_friendly_descr($config['ezshaper']['step2']['outside_int']);
OpenPOWER on IntegriCloud