Actions
Bug #76029
closedRegex in ExtensionManagementUtility::executePositionedStringInsertion is broken if you want to insert after a palette
Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2016-05-03
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Description
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('pages', 'myfield', '', 'after:description');
The field "description" is part of the palette "metatags" so $positionName in ExtensionManagementUtility::executePositionedStringInsertion() is "--palette--;;metatags". This is modified to "--palette--;[^;]*;metatags" and then escaped with "preg_quote($positionName, '/')". And then the preg_replace doesn't work.
$positionName should be first quoted and then extended.
This was intruduced in https://forge.typo3.org/issues/75830.
Updated by Morton Jonuschat almost 9 years ago
- Status changed from New to Rejected
Closing as duplicate of #75946
Actions