Project

General

Profile

Actions

Regression #14794

closed

PHP error when adding firewall rule when the configuration contains no separators

Added by Jim Pingle about 1 year ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
Rules / NAT
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
23.09
Release Notes:
Force Exclusion
Affected Version:
2.8.0
Affected Architecture:

Description

Trying to add a firewall rule to a configuration without separators yields a PHP error:

[19-Sep-2023 15:19:37 Etc/UTC] PHP Fatal error:  Uncaught TypeError: array_get_path(): Argument #1 ($arr) must be of type array, string given, called in /etc/inc/filter.inc on line 4985 and defined in /etc/inc/util.inc:3551
Stack trace:
#0 /etc/inc/filter.inc(4985): array_get_path('', 'row/0')
#1 /usr/local/www/firewall_rules_edit.php(1085): shift_separators(Array, -1)
#2 {main}
  thrown in /etc/inc/util.inc on line 3551

The config.xml section for separators is empty:

<separator></separator>

To me, I have a fix

Actions

Also available in: Atom PDF