From 314a612f82e191befa523a110e8d8b706f504d7b Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 1 Jul 2006 22:39:52 +0000 Subject: [PATCH] * Add port 5223 * Make sure upload and download values are numeric --- usr/local/www/wizards/traffic_shaper_wizard.inc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/usr/local/www/wizards/traffic_shaper_wizard.inc b/usr/local/www/wizards/traffic_shaper_wizard.inc index eb54467498..16a04d9265 100644 --- a/usr/local/www/wizards/traffic_shaper_wizard.inc +++ b/usr/local/www/wizards/traffic_shaper_wizard.inc @@ -42,6 +42,11 @@ function step1_stepsubmitphpaction() { function step2_stepsubmitphpaction() { global $g, $config; + if(!is_numeric($_POST['upload']) or !is_numeric($_POST['download'])) { + $message="Upload and download speeds must be a number only! Values should be Kbits/second."; + header("Location: /wizard.php?xml=traffic_shaper_wizard.xml&stepid=1&message={$message}"); + exit; + } if ($config['ezshaper']['step2']['inside_int'] == $config['ezshaper']['step2']['outside_int']) { $message="Inside and Outside interfaces cannot be the same"; header("Location: /wizard.php?xml=traffic_shaper_wizard.xml&stepid=1&message={$message}"); @@ -807,8 +812,9 @@ function step6_stepsubmitphpaction() { if($_POST['jabber'] != "") { /* jabber */ - $othersplist[] = array('IRC', 'tcp', '5222', '5222', 'both', $_POST['jabber']); - $othersplist[] = array('IRC', 'tcp', '5269', '5269', 'both', $_POST['jabber']); + $othersplist[] = array('IRC', 'tcp', '5222', '5222', 'both', $_POST['jabber1']); + $othersplist[] = array('IRC', 'tcp', '5223', '5223', 'both', $_POST['jabber2']); + $othersplist[] = array('IRC', 'tcp', '5269', '5269', 'both', $_POST['jabber3']); } if($_POST['dns'] != "") {