diff --git a/src/usr/local/www/interfaces_vlan.php b/src/usr/local/www/interfaces_vlan.php
index 4d01bd1694..9c6c197e26 100644
--- a/src/usr/local/www/interfaces_vlan.php
+++ b/src/usr/local/www/interfaces_vlan.php
@@ -88,19 +88,19 @@ function vlan_inuse($num) {
return false;
}
-if ($_GET['act'] == "del") {
- if (!isset($_GET['id'])) {
+if ($_POST['act'] == "del") {
+ if (!isset($_POST['id'])) {
$input_errors[] = gettext("Wrong parameters supplied");
- } else if (empty($a_vlans[$_GET['id']])) {
+ } else if (empty($a_vlans[$_POST['id']])) {
$input_errors[] = gettext("Wrong index supplied");
/* check if still in use */
- } else if (vlan_inuse($_GET['id'])) {
+ } else if (vlan_inuse($_POST['id'])) {
$input_errors[] = gettext("This VLAN cannot be deleted because it is still being used as an interface.");
} else {
- if (does_interface_exist($a_vlans[$_GET['id']]['vlanif'])) {
- pfSense_interface_destroy($a_vlans[$_GET['id']]['vlanif']);
+ if (does_interface_exist($a_vlans[$_POST['id']]['vlanif'])) {
+ pfSense_interface_destroy($a_vlans[$_POST['id']]['vlanif']);
}
- unset($a_vlans[$_GET['id']]);
+ unset($a_vlans[$_POST['id']]);
write_config();
@@ -134,15 +134,19 @@ print_info_box(sprintf(gettext('NOTE: Not all drivers/NICs support 802.1Q '.
'tagging will still work, but the reduced MTU may cause problems.
See the '.
'%s handbook for information on supported cards.'),$g['product_name']));
?>
-
| =gettext('Interface');?> | -=gettext('VLAN tag');?> | -=gettext('Description');?> | -
|---|