Project

General

Profile

Actions

Bug #14446

closed

PHP error in Captive Portal ``usedmacs`` handling

Added by Christopher Cope over 1 year ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Category:
Captive Portal
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
23.05.1
Release Notes:
Default
Affected Version:
2.7.0
Affected Architecture:

Description

[03-Jun-2023 12:26:11 US/Eastern] PHP Fatal error:  Uncaught TypeError: trim(): Argument #1 ($string) must be of type string, array given in /etc/inc/captiveportal.inc:2354
Stack trace:
#0 /etc/inc/captiveportal.inc(2354): trim(Array)
#1 /etc/rc.carpmaster(196): captiveportal_write_usedmacs_db(Array)
#2 {main}
  thrown in /etc/inc/captiveportal.inc on line 2354

Getting this on
23.05-RELEASE (amd64)
built on Mon May 22 15:04:36 UTC 2023
FreeBSD 14.0-CURRENT

Based on the code I'm not sure how an array is getting to that point, since the code is wrapped with "!is_array()". Trying to narrow it down.

Related issues

Related to Regression #14172: PHP error in Captive Portal if ``usedmacs`` list is emptyResolvedJim Pingle

Actions
Actions

Also available in: Atom PDF