mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
MFC 12386
Do not allow interface descriptions to match an alias name. They end up colliding in the PF MACRO space. Ticket #996
This commit is contained in:
parent
1c39d2d5d0
commit
cfa466bb14
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user