Project

General

Profile

Actions

Bug #96929

closed

TCA / TCA overrides with variable leaks

Added by Mathias Brodala about 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Code Cleanup
Target version:
Start date:
2022-02-16
Due date:
% Done:

100%

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

Description

All TCA and TCA overrides files are included without any scoping. This means that variables defined in these files can leak into the following files.

Also all variables defined in ExtensionManagementUtility::buildBaseTcaFromSingleFiles() exist in TCA and TCA override files and could even be manipulated.

See https://github.com/TYPO3/typo3/blob/35f7bbb381514efd483b9bfe1570229fc454dd8f/typo3/sysext/core/Classes/Utility/ExtensionManagementUtility.php#L1477

Possible solution: wrap the require calls for TCA / TCA override files with a closure.

Actions

Also available in: Atom PDF