diff options
Diffstat (limited to 'usr/local/www/interfaces_vlan.php')
-rwxr-xr-x | usr/local/www/interfaces_vlan.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/local/www/interfaces_vlan.php b/usr/local/www/interfaces_vlan.php index 5333c6c..dadeb07 100755 --- a/usr/local/www/interfaces_vlan.php +++ b/usr/local/www/interfaces_vlan.php @@ -63,6 +63,8 @@ if ($_GET['act'] == "del") { /* check if still in use */ if (vlan_inuse($_GET['id'])) { $input_errors[] = gettext("This VLAN cannot be deleted because it is still being used as an interface."); + } elseif (!does_interface_exist($a_vlans[$_GET['id']]['vlanif'])) { + $input_errors[] = gettext("Invalid VLAN interface."); } else { mwexec("/sbin/ifconfig " . $a_vlans[$_GET['id']]['vlanif'] . " destroy"); unset($a_vlans[$_GET['id']]); |