Issue Bug Closed

#96929TCA / TCA overrides with variable leaks

Mathias Brodala 02/16/22, 15:38 updated 10/04/22, 08:38

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.

Reviews 1