From 8cb954893577ed40fa033f5a733b5158e4c46f7a Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Wed, 17 May 2006 22:38:01 +0000 Subject: [PATCH] Do not allow upload or download speeds to be blank. --- usr/local/www/wizards/traffic_shaper_wizard.inc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/usr/local/www/wizards/traffic_shaper_wizard.inc b/usr/local/www/wizards/traffic_shaper_wizard.inc index aa8d83cc97..b851708f90 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&stepid={$stepid}&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&stepid={$stepid}&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']);