Project

General

Profile

Actions

Bug #103711

closed

formatLogDetailsStatic can throw ValueError/ ArgumentCountError

Added by Thomas Hohn 7 months ago. Updated about 1 month ago.

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

100%

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