From cfa466bb14052d1f61e1c944715cd7871d61baeb Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Fri, 26 May 2006 03:35:32 +0000 Subject: MFC 12386 Do not allow interface descriptions to match an alias name. They end up colliding in the PF MACRO space. Ticket #996 --- usr/local/www/firewall_aliases_edit.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'usr/local/www/firewall_aliases_edit.php') 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(); -- cgit v1.1