mirror of
https://github.com/opnsense/core.git
synced 2026-05-28 04:34:51 -04:00
firewall_rule_lookup.php - support 0 as valid ruleid (2), for https://github.com/opnsense/core/pull/9423
This commit is contained in:
parent
f3291e23dd
commit
7fe42e78c5
1 changed files with 1 additions and 1 deletions
|
|
@ -916,7 +916,7 @@ function url_safe($format, $args = [])
|
|||
|
||||
foreach ($args as $id => $arg) {
|
||||
/* arguments could be empty, so force default */
|
||||
$args[$id] = !empty($arg) ? urlencode($arg) : '';
|
||||
$args[$id] = urlencode($arg ?? '');
|
||||
}
|
||||
|
||||
return vsprintf($format, $args);
|
||||
|
|
|
|||
Loading…
Reference in a new issue