diff options
author | Steve Beaver <sbeaver@netgate.com> | 2017-02-10 08:35:14 -0500 |
---|---|---|
committer | Steve Beaver <sbeaver@netgate.com> | 2017-02-10 08:35:14 -0500 |
commit | a04f6658666f706079a4dac7e1dfa71ab978b622 (patch) | |
tree | e49eebfbe75e8d039998dc0bd03690686eefe5c0 /src/usr/local/www/system_gateways_edit.php | |
parent | ba14d48e26a7f5fb172e6dcf40872a4388f4bc81 (diff) | |
download | pfsense-a04f6658666f706079a4dac7e1dfa71ab978b622.zip pfsense-a04f6658666f706079a4dac7e1dfa71ab978b622.tar.gz |
GET/POST conversion system_gateways*
Diffstat (limited to 'src/usr/local/www/system_gateways_edit.php')
-rw-r--r-- | src/usr/local/www/system_gateways_edit.php | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/usr/local/www/system_gateways_edit.php b/src/usr/local/www/system_gateways_edit.php index 8f1def5..c18b471 100644 --- a/src/usr/local/www/system_gateways_edit.php +++ b/src/usr/local/www/system_gateways_edit.php @@ -49,15 +49,12 @@ if (!is_array($config['gateways']['gateway_item'])) { $a_gateway_item = &$config['gateways']['gateway_item']; $dpinger_default = return_dpinger_defaults(); -if (is_numericint($_GET['id'])) { - $id = $_GET['id']; -} -if (isset($_POST['id']) && is_numericint($_POST['id'])) { +if (is_numericint($_POST['id'])) { $id = $_POST['id']; } -if (isset($_GET['dup']) && is_numericint($_GET['dup'])) { - $id = $_GET['dup']; +if (isset($_POST['dup']) && is_numericint($_POST['dup'])) { + $id = $_POST['dup']; } if (isset($id) && $a_gateways[$id]) { @@ -91,7 +88,7 @@ if (isset($id) && $a_gateways[$id]) { $pconfig['disabled'] = isset($a_gateways[$id]['disabled']); } -if (isset($_GET['dup']) && is_numericint($_GET['dup'])) { +if (isset($_POST['dup']) && is_numericint($_POST['dup'])) { unset($id); unset($pconfig['attribute']); } @@ -100,7 +97,7 @@ if (isset($id) && $a_gateways[$id]) { $realid = $a_gateways[$id]['attribute']; } -if ($_POST) { +if ($_POST['save']) { unset($input_errors); |