Skip to content

Commit

Permalink
firewall: two more group issues
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed Aug 1, 2023
1 parent e27d37a commit 0e1aa4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/www/firewall_rules.php
Expand Up @@ -736,7 +736,7 @@ function filter_rule_item_alias_tooltip($alias_name)
<?php
$ifgroups = [];
foreach (config_read_array('ifgroups', 'ifgroupentry') as $ifgroup) {
if (!empty($ifgroup['members']) && in_array($selected_if, explode(' ', $ifgroup['members']))) {
if (!empty($ifgroup['members']) && in_array($selected_if, preg_split('/[ |,]+/', $ifgroup['members']))) {
$ifgroups[] = $ifgroup['ifname'];
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/www/interfaces_assign.php
Expand Up @@ -42,7 +42,7 @@ function link_interface_to_group($int)

if (isset($config['ifgroups']['ifgroupentry'])) {
foreach ($config['ifgroups']['ifgroupentry'] as $group) {
if (in_array($int, explode(" ", $group['members']))) {
if (in_array($int, preg_split('/[ |,]+/', $group['members']))) {
$result[$group['ifname']] = $int;
}
}
Expand Down

0 comments on commit 0e1aa4b

Please sign in to comment.