Project

General

Profile

Actions

Bug #103711

open

formatLogDetailsStatic can throw ValueError/ ArgumentCountError

Added by Thomas Hohn 25 days ago. Updated 25 days ago.

Status:
Under Review
Priority:
Must have
Assignee:
Category:
Logging
Target version:
Start date:
2024-04-23
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
13
PHP Version:
8.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The following code can throw an ValueError/ ArgumentCountError if

 if (str_contains($detailString, '%')) {
            $detailString = vsprintf($detailString, $substitutes);
        } elseif ($substitutes !== []) {
..

$substitutes is empty or number of arguments in the $substitutes doesn't match
the number of %s's

Actions

Also available in: Atom PDF