summaryrefslogtreecommitdiffstats
path: root/usr/local/www/wizards
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-07-01 22:39:52 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-07-01 22:39:52 +0000
commit314a612f82e191befa523a110e8d8b706f504d7b (patch)
treea37c805272a59ce27bc8eb45ad2380e8ff2955f9 /usr/local/www/wizards
parent353b7c6f15a96e702b0e3607b1eb97cddb3b299c (diff)
downloadpfsense-314a612f82e191befa523a110e8d8b706f504d7b.zip
pfsense-314a612f82e191befa523a110e8d8b706f504d7b.tar.gz
* Add port 5223
* Make sure upload and download values are numeric
Diffstat (limited to 'usr/local/www/wizards')
-rw-r--r--usr/local/www/wizards/traffic_shaper_wizard.inc10
1 files 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 eb54467..16a04d9 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&amp;stepid=1&amp;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&amp;stepid=1&amp;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'] != "") {
OpenPOWER on IntegriCloud