Skip to content

Commit b52bf63

Browse files
committed
firewall: groups were not correctly parsed for menu post-migration
1 parent b5992b8 commit b52bf63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/opnsense/mvc/app/models/OPNsense/Base/Menu/MenuSystem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ public function __construct()
209209
/* we need both if and gr reference */
210210
$iftargets['if'][(string)$node->ifname] = (string)$node->ifname;
211211
$iftargets['gr'][(string)$node->ifname] = (string)$node->ifname;
212-
foreach (explode(' ', (string)$node->members) as $member) {
212+
foreach (preg_split('/[ |,]+/', (string)$node->members) as $member) {
213213
if (!array_key_exists($member, $ifgroups)) {
214214
$ifgroups[$member] = [];
215215
}

0 commit comments

Comments
 (0)