summaryrefslogtreecommitdiffstats
path: root/usr/local/www/interfaces_vlan_edit.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-01-24 09:57:22 +0000
committerErmal <eri@pfsense.org>2013-01-24 09:57:22 +0000
commit0e22dda58ddc010d12126ed6af6589ff76d03043 (patch)
treee7396e447b3f7cb6e4582df870f4f022af9c3bf8 /usr/local/www/interfaces_vlan_edit.php
parent7309ff3915c58fd664618f01a91dbe8ac9dd2526 (diff)
downloadpfsense-0e22dda58ddc010d12126ed6af6589ff76d03043.zip
pfsense-0e22dda58ddc010d12126ed6af6589ff76d03043.tar.gz
Put some more sanity checking for various interface configurations
Diffstat (limited to 'usr/local/www/interfaces_vlan_edit.php')
-rwxr-xr-xusr/local/www/interfaces_vlan_edit.php3
1 files changed, 3 insertions, 0 deletions
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;
OpenPOWER on IntegriCloud