Project

General

Profile

Actions

Bug #103711

open

formatLogDetailsStatic can throw ValueError/ ArgumentCountError

Added by Thomas Hohn 11 days ago. Updated 11 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 #1

Updated by Gerrit Code Review 11 days ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84004

Actions #2

Updated by Gerrit Code Review 11 days ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84004

Actions #3

Updated by Gerrit Code Review 11 days ago

Patch set 3 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84004

Actions #4

Updated by Gerrit Code Review 11 days ago

Patch set 4 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84004

Actions #5

Updated by Gerrit Code Review 11 days ago

Patch set 5 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84004

Actions

Also available in: Atom PDF