diff options
author | Steve Beaver <sbeaver@netgate.com> | 2017-02-14 16:06:48 -0500 |
---|---|---|
committer | Steve Beaver <sbeaver@netgate.com> | 2017-02-14 16:06:48 -0500 |
commit | cbb82e6b6ca03d59209ef8f76968249ca390a9a2 (patch) | |
tree | 0423a998336ecf21d9542877fa7ada393709bf43 /src/usr/local/www/load_balancer_virtual_server_edit.php | |
parent | 9f2bbdb44c5700384a37a9586d260492f14f7602 (diff) | |
download | pfsense-cbb82e6b6ca03d59209ef8f76968249ca390a9a2.zip pfsense-cbb82e6b6ca03d59209ef8f76968249ca390a9a2.tar.gz |
GET/POST conversions
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 | 13 |
1 files changed, 4 insertions, 9 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 c3e1d1e..17fd92a 100644 --- a/src/usr/local/www/load_balancer_virtual_server_edit.php +++ b/src/usr/local/www/load_balancer_virtual_server_edit.php @@ -38,14 +38,9 @@ if (isset($_POST['referer'])) { if (!is_array($config['load_balancer']['virtual_server'])) { $config['load_balancer']['virtual_server'] = array(); } -$a_vs = &$config['load_balancer']['virtual_server']; -if (is_numericint($_GET['id'])) { - $id = $_GET['id']; -} -if (isset($_POST['id']) && is_numericint($_POST['id'])) { - $id = $_POST['id']; -} +$a_vs = &$config['load_balancer']['virtual_server']; +$id = $_REQUEST['id']; if (isset($id) && $a_vs[$id]) { $pconfig = $a_vs[$id]; @@ -59,7 +54,7 @@ $changecount = 0; $allowed_protocols = array("tcp", "dns"); -if ($_POST) { +if ($_POST['save']) { unset($input_errors); $pconfig = $_POST; @@ -257,7 +252,7 @@ $section->addInput(new Form_Select( ['tcp' => 'TCP', 'dns' => 'DNS'] )); -if (isset($id) && $a_vs[$id] && $_GET['act'] != 'dup') { +if (isset($id) && $a_vs[$id] && $_REQUEST['act'] != 'dup') { $section->addInput(new Form_Input( 'id', null, |