From 0e22dda58ddc010d12126ed6af6589ff76d03043 Mon Sep 17 00:00:00 2001 From: Ermal Date: Thu, 24 Jan 2013 09:57:22 +0000 Subject: Put some more sanity checking for various interface configurations --- usr/local/www/interfaces_vlan_edit.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'usr/local/www/interfaces_vlan_edit.php') diff --git a/usr/local/www/interfaces_vlan_edit.php b/usr/local/www/interfaces_vlan_edit.php index bed4be8..25b7b56 100755 --- a/usr/local/www/interfaces_vlan_edit.php +++ b/usr/local/www/interfaces_vlan_edit.php @@ -80,6 +80,9 @@ if ($_POST) { $input_errors[] = gettext("The VLAN tag must be an integer between 1 and 4094."); } + if (!does_interface_exist($_POST['if'])) + $input_errors[] = gettext("Interface supplied as parent is invalid"); + foreach ($a_vlans as $vlan) { if (isset($id) && ($a_vlans[$id]) && ($a_vlans[$id] === $vlan)) continue; -- cgit v1.1