diff options
author | Ermal <eri@pfsense.org> | 2013-08-12 18:16:18 +0000 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2013-09-23 08:35:08 -0300 |
commit | 9e768dafa4b34e0983ee02af84216d9d560e9410 (patch) | |
tree | 211c26b5e8f5f3571fc313742257fbebbd30631a /usr | |
parent | ac8e8506b90c64b99c80bdff50892b703431b54a (diff) | |
download | pfsense-9e768dafa4b34e0983ee02af84216d9d560e9410.zip pfsense-9e768dafa4b34e0983ee02af84216d9d560e9410.tar.gz |
Prevent assigned vlans from being changed the tag.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/interfaces_vlan_edit.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/usr/local/www/interfaces_vlan_edit.php b/usr/local/www/interfaces_vlan_edit.php index 524f9f3..ced8611 100755 --- a/usr/local/www/interfaces_vlan_edit.php +++ b/usr/local/www/interfaces_vlan_edit.php @@ -83,6 +83,12 @@ if ($_POST) { if (!does_interface_exist($_POST['if'])) $input_errors[] = gettext("Interface supplied as parent is invalid"); + if (isset($id)) { + if ($_POST['tag'] && $_POST['tag'] != $a_vlans[$id]['tag']) { + if (!empty($a_vlans[$id]['vlanif']) && convert_real_interface_to_friendly_interface_name($a_vlans[$id]['vlanif']) != NULL) + $input_errors[] = gettext("Interface is assigned and you cannot change the VLAN tag while assigned."); + } + } foreach ($a_vlans as $vlan) { if (isset($id) && ($a_vlans[$id]) && ($a_vlans[$id] === $vlan)) continue; |