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_virtual_server_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_virtual_server_edit.php')
-rw-r--r-- | src/usr/local/www/load_balancer_virtual_server_edit.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/usr/local/www/load_balancer_virtual_server_edit.php b/src/usr/local/www/load_balancer_virtual_server_edit.php index 39bc6c9..f1a60bb 100644 --- a/src/usr/local/www/load_balancer_virtual_server_edit.php +++ b/src/usr/local/www/load_balancer_virtual_server_edit.php @@ -71,6 +71,8 @@ if (isset($id) && $a_vs[$id]) { $changedesc = gettext("Load Balancer: Virtual Server:") . " "; $changecount = 0; +$allowed_protocols = array("tcp", "dns"); + if ($_POST) { unset($input_errors); $pconfig = $_POST; @@ -115,6 +117,10 @@ if ($_POST) { $input_errors[] = sprintf(gettext("%s is a subnet containing more than 64 IP addresses."), $_POST['ipaddr']); } + if (!in_array($_POST['relay_protocol'], $allowed_protocols)) { + $input_errors[] = gettext("The submitted relay protocol is not valid."); + } + if ((strtolower($_POST['relay_protocol']) == "dns") && !empty($_POST['sitedown'])) { $input_errors[] = gettext("You cannot select a Fall Back Pool when using the DNS relay protocol."); } |