diff options
author | jim-p <jimp@pfsense.org> | 2015-09-08 15:47:55 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2015-09-08 15:47:55 -0400 |
commit | 0f032d7ec320609ac7c89cfb67ea2759b420af11 (patch) | |
tree | 486df9fba6d40f170fe1bcc3a90b8a57de78d764 /src/usr/local/www/load_balancer_pool_edit.php | |
parent | 67146d7e7c5fb58339ac24ac29cb9f3791ca0a10 (diff) | |
download | pfsense-0f032d7ec320609ac7c89cfb67ea2759b420af11.zip pfsense-0f032d7ec320609ac7c89cfb67ea2759b420af11.tar.gz |
Misc encoding/display issues in the Load Balancer code
Diffstat (limited to 'src/usr/local/www/load_balancer_pool_edit.php')
-rw-r--r-- | src/usr/local/www/load_balancer_pool_edit.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/usr/local/www/load_balancer_pool_edit.php b/src/usr/local/www/load_balancer_pool_edit.php index 4d41b3b..66f7acf 100644 --- a/src/usr/local/www/load_balancer_pool_edit.php +++ b/src/usr/local/www/load_balancer_pool_edit.php @@ -71,6 +71,8 @@ if (isset($id) && $a_pool[$id]) { $changedesc = gettext("Load Balancer: Pool:") . " "; $changecount = 0; +$allowed_modes = array("loadbalance", "failover"); + if ($_POST) { $changecount++; @@ -107,6 +109,10 @@ if ($_POST) { if (!empty($_POST['retry']) && !is_port($_POST['retry'])) $input_errors[] = gettext("The retry value must be an integer between 1 and 65535."); + if (!in_array($_POST['mode'], $allowed_modes)) { + $input_errors[] = gettext("The submitted mode is not valid."); + } + if (is_array($_POST['servers'])) { foreach($pconfig['servers'] as $svrent) { if (!is_ipaddr($svrent) && !is_subnetv4($svrent)) { |