mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 08:34:39 +00:00
Firewall / Util, isAlias() should return false when an empty name is provided. for https://github.com/opnsense/core/issues/1903
This commit is contained in:
parent
8334db3a7b
commit
bd984071b4
@ -75,7 +75,7 @@ class Util
|
||||
*/
|
||||
public static function isAlias($name)
|
||||
{
|
||||
if (!empty(Config::getInstance()->object()->aliases)) {
|
||||
if (!empty($name) && !empty(Config::getInstance()->object()->aliases)) {
|
||||
foreach (Config::getInstance()->object()->aliases->children() as $node) {
|
||||
if ($node->name == $name) {
|
||||
return true;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user