mirror of
https://github.com/opnsense/core.git
synced 2026-10-12 02:20:36 +00:00
Firewall: Diagnostics: Aliases - array_search() should check for boolean false, closes https://github.com/opnsense/core/issues/10981
(cherry picked from commit 6553188c27)
This commit is contained in:
committed by
Franco Fichtner
parent
a842fe48c2
commit
8f05ecaf8a
@@ -180,7 +180,7 @@ class AliasUtilController extends ApiControllerBase
|
||||
// add mask
|
||||
$address .= "/" . (strpos($address, ":") ? '128' : '32');
|
||||
}
|
||||
if (!array_search($address, $items)) {
|
||||
if (array_search($address, $items) === false) {
|
||||
$items[] = $address;
|
||||
$cnfAlias->content = implode("\n", $items);
|
||||
$this->getModel()->serializeToConfig();
|
||||
|
||||
Reference in New Issue
Block a user