summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/system_gateway_groups_edit.php
diff options
context:
space:
mode:
authorSteve Beaver <sbeaver@netgate.com>2017-02-10 08:21:21 -0500
committerSteve Beaver <sbeaver@netgate.com>2017-02-10 08:21:21 -0500
commitba14d48e26a7f5fb172e6dcf40872a4388f4bc81 (patch)
tree8aa2c9a11d7db6e64acce6443aeddb992c33ee1a /src/usr/local/www/system_gateway_groups_edit.php
parentbda120a4cb284f276156a3e9da8f8f3261999ea9 (diff)
downloadpfsense-ba14d48e26a7f5fb172e6dcf40872a4388f4bc81.zip
pfsense-ba14d48e26a7f5fb172e6dcf40872a4388f4bc81.tar.gz
GET/POST conversion system_gateway_groups*
Diffstat (limited to 'src/usr/local/www/system_gateway_groups_edit.php')
-rw-r--r--src/usr/local/www/system_gateway_groups_edit.php11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/usr/local/www/system_gateway_groups_edit.php b/src/usr/local/www/system_gateway_groups_edit.php
index b5cc167..5e3c18a 100644
--- a/src/usr/local/www/system_gateway_groups_edit.php
+++ b/src/usr/local/www/system_gateway_groups_edit.php
@@ -44,15 +44,12 @@ $categories = array(
'downlatency' => gettext("High Latency"),
'downlosslatency' => gettext("Packet Loss or High Latency"));
-if (is_numericint($_GET['id'])) {
- $id = $_GET['id'];
-}
if (isset($_POST['id']) && 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_gateway_groups[$id]) {
@@ -62,11 +59,11 @@ if (isset($id) && $a_gateway_groups[$id]) {
$pconfig['trigger'] = $a_gateway_groups[$id]['trigger'];
}
-if (isset($_GET['dup']) && is_numericint($_GET['dup'])) {
+if (isset($_POST['dup']) && is_numericint($_POST['dup'])) {
unset($id);
}
-if ($_POST) {
+if (isset($_POST['save'])) {
unset($input_errors);
$pconfig = $_POST;
OpenPOWER on IntegriCloud