summaryrefslogtreecommitdiffstats
path: root/usr/local/www/interfaces_groups_edit.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/interfaces_groups_edit.php')
-rwxr-xr-xusr/local/www/interfaces_groups_edit.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/interfaces_groups_edit.php b/usr/local/www/interfaces_groups_edit.php
index 6551323..a5960be 100755
--- a/usr/local/www/interfaces_groups_edit.php
+++ b/usr/local/www/interfaces_groups_edit.php
@@ -49,9 +49,9 @@ if (!is_array($config['ifgroups']['ifgroupentry']))
$a_ifgroups = &$config['ifgroups']['ifgroupentry'];
-if (isset($_GET['id']))
+if (is_numericint($_GET['id']))
$id = $_GET['id'];
-if (isset($_POST['id']))
+if (isset($_POST['id']) && is_numericint($_POST['id']))
$id = $_POST['id'];
if (isset($id) && $a_ifgroups[$id]) {
OpenPOWER on IntegriCloud