summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_aliases_edit.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-05-26 03:35:32 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-05-26 03:35:32 +0000
commitcfa466bb14052d1f61e1c944715cd7871d61baeb (patch)
tree8482033ecee00be86337782d3216001fa8e1775a /usr/local/www/firewall_aliases_edit.php
parent1c39d2d5d06a5e34ba9f0274df97ac9f6068ff76 (diff)
downloadpfsense-cfa466bb14052d1f61e1c944715cd7871d61baeb.zip
pfsense-cfa466bb14052d1f61e1c944715cd7871d61baeb.tar.gz
MFC 12386
Do not allow interface descriptions to match an alias name. They end up colliding in the PF MACRO space. Ticket #996
Diffstat (limited to 'usr/local/www/firewall_aliases_edit.php')
-rwxr-xr-xusr/local/www/firewall_aliases_edit.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/usr/local/www/firewall_aliases_edit.php b/usr/local/www/firewall_aliases_edit.php
index 8b30466..93ec131 100755
--- a/usr/local/www/firewall_aliases_edit.php
+++ b/usr/local/www/firewall_aliases_edit.php
@@ -117,6 +117,14 @@ if ($_POST) {
break;
}
}
+
+ /* check for name interface description conflicts */
+ foreach($config['interfaces'] as $interface) {
+ if($interface['descr'] == $_POST['name']) {
+ $input_errors[] = gettext("An interface description with this name already exists.");
+ break;
+ }
+ }
if (!$input_errors) {
$alias = array();
OpenPOWER on IntegriCloud