diff options
author | Steve Beaver <sbeaver@netgate.com> | 2017-02-10 11:25:46 -0500 |
---|---|---|
committer | Steve Beaver <sbeaver@netgate.com> | 2017-02-10 11:25:46 -0500 |
commit | e1a5d73ca227609312a08ef28629ab16f4421912 (patch) | |
tree | 4585478fce6876bbe6ad5344c499dfda55d8824c /src/usr/local/www/interfaces_groups_edit.php | |
parent | 5947395daff59bfd537d14e5d1e8b2f778d05efe (diff) | |
download | pfsense-e1a5d73ca227609312a08ef28629ab16f4421912.zip pfsense-e1a5d73ca227609312a08ef28629ab16f4421912.tar.gz |
GET/POST conversion interfaces_groups*
Diffstat (limited to 'src/usr/local/www/interfaces_groups_edit.php')
-rw-r--r-- | src/usr/local/www/interfaces_groups_edit.php | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/usr/local/www/interfaces_groups_edit.php b/src/usr/local/www/interfaces_groups_edit.php index 6418c2e..8663613 100644 --- a/src/usr/local/www/interfaces_groups_edit.php +++ b/src/usr/local/www/interfaces_groups_edit.php @@ -39,13 +39,7 @@ if (!is_array($config['ifgroups']['ifgroupentry'])) { } $a_ifgroups = &$config['ifgroups']['ifgroupentry']; - -if (is_numericint($_GET['id'])) { - $id = $_GET['id']; -} -if (isset($_POST['id']) && is_numericint($_POST['id'])) { - $id = $_POST['id']; -} +$id = $_POST['id']; if (isset($id) && $a_ifgroups[$id]) { $pconfig['ifname'] = $a_ifgroups[$id]['ifname']; @@ -59,7 +53,7 @@ $ifname_allowed_chars_text = gettext("Only letters (A-Z), digits (0-9) and '_' a $ifname_no_digit_text = gettext("The group name cannot end with a digit."); -if ($_POST) { +if ($_POST['save']) { unset($input_errors); $pconfig = $_POST; |