diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2016-04-15 15:02:43 -0400 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2016-04-15 15:03:11 -0400 |
commit | 3c74b48e338ac561aaa6e9129550650f1a33d9dc (patch) | |
tree | 5843b7baf9a875e18486574c6e5b8864c8ecaf96 /src/usr/local | |
parent | e8dcc1dd4aa6abd558ec549e1872f5705d048689 (diff) | |
download | pfsense-3c74b48e338ac561aaa6e9129550650f1a33d9dc.zip pfsense-3c74b48e338ac561aaa6e9129550650f1a33d9dc.tar.gz |
Fixed #6171
(cherry picked from commit ed49fe7ae13c01ee083c3f205b86c6713e0d90a3)
Diffstat (limited to 'src/usr/local')
-rw-r--r-- | src/usr/local/www/load_balancer_monitor_edit.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/usr/local/www/load_balancer_monitor_edit.php b/src/usr/local/www/load_balancer_monitor_edit.php index 26cddcb..8078cbb 100644 --- a/src/usr/local/www/load_balancer_monitor_edit.php +++ b/src/usr/local/www/load_balancer_monitor_edit.php @@ -68,11 +68,13 @@ $referer = (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '/load_ if (!is_array($config['load_balancer']['monitor_type'])) { $config['load_balancer']['monitor_type'] = array(); } + $a_monitor = &$config['load_balancer']['monitor_type']; if (is_numericint($_GET['id'])) { $id = $_GET['id']; } + if (isset($_POST['id']) && is_numericint($_POST['id'])) { $id = $_POST['id']; } @@ -89,7 +91,7 @@ if (isset($id) && $a_monitor[$id]) { $pconfig['options']['code'] = 200; } -if ($_GET['act'] = "dup") { +if ($_GET['act'] == "dup") { unset($id); } @@ -239,8 +241,6 @@ $types = array("icmp" => gettext("ICMP"), "tcp" => gettext("TCP"), "http" => get ?> - - <script type="text/javascript"> //<![CDATA[ events.push(function() { @@ -295,6 +295,7 @@ if ($input_errors) { } $form = new Form(); +$form->setAction("load_balancer_monitor_edit.php"); $section = new Form_Section('Edit Load Balancer - Monitor Entry'); |