firewall_rule_lookup.php - support 0 as valid ruleid (2), for https://github.com/opnsense/core/pull/9423

This commit is contained in:
Ad Schellevis 2025-11-19 16:25:13 +01:00
parent f3291e23dd
commit 7fe42e78c5

View file

@ -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);