diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-05-26 03:35:32 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-05-26 03:35:32 +0000 |
commit | cfa466bb14052d1f61e1c944715cd7871d61baeb (patch) | |
tree | 8482033ecee00be86337782d3216001fa8e1775a /usr/local | |
parent | 1c39d2d5d06a5e34ba9f0274df97ac9f6068ff76 (diff) | |
download | pfsense-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')
-rwxr-xr-x | usr/local/www/firewall_aliases_edit.php | 8 |
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(); |