[BUGFIX] Allow slashes as TS keys and escape dots for generated TS
With the introduction of site settings being exposed to TypoScript with https://review.typo3.org/64128 it has become important to allow more characters as TypoScript keys. Allowing a slash in addition should cover cases where paths are exposed as keys. Additionally the above change reveals, that the ArrayUtility::flatten method does not properly handle array keys that has dots in between, as those must be escaped to produce a correct result. This change introduces a new flatten method after several failed attempts to guess what fixes might not be breaking. The new method is used in places where no TypoScript is used, as in those the weird edge case behaviour of the flatten method isn't expected anyway. The new method is marked internal until it is decided how to proceed with the flatten method. Resolves: #94646 Releases: master, 10.4 Change-Id: I4ebad8a0beece975702d8601a343aa1fdaaa285c Reviewed-on: https://review.typo3.org/c/Packages/...
Showing
- typo3/sysext/core/Classes/Configuration/Parser/PageTsConfigParser.php 1 addition, 1 deletion.../core/Classes/Configuration/Parser/PageTsConfigParser.php
- typo3/sysext/core/Classes/TypoScript/Parser/TypoScriptParser.php 2 additions, 2 deletions...ysext/core/Classes/TypoScript/Parser/TypoScriptParser.php
- typo3/sysext/core/Classes/TypoScript/TemplateService.php 1 addition, 1 deletiontypo3/sysext/core/Classes/TypoScript/TemplateService.php
- typo3/sysext/core/Classes/Utility/ArrayUtility.php 29 additions, 0 deletionstypo3/sysext/core/Classes/Utility/ArrayUtility.php
- typo3/sysext/core/Tests/Unit/TypoScript/Parser/TypoScriptParserTest.php 7 additions, 1 deletion...ore/Tests/Unit/TypoScript/Parser/TypoScriptParserTest.php
- typo3/sysext/core/Tests/Unit/Utility/ArrayUtilityTest.php 176 additions, 0 deletionstypo3/sysext/core/Tests/Unit/Utility/ArrayUtilityTest.php
- typo3/sysext/fluid/Classes/ViewHelpers/Be/Menus/ActionMenuItemViewHelper.php 2 additions, 2 deletions...Classes/ViewHelpers/Be/Menus/ActionMenuItemViewHelper.php
- typo3/sysext/form/Classes/Domain/Configuration/ArrayProcessing/ArrayProcessor.php 1 addition, 1 deletion...s/Domain/Configuration/ArrayProcessing/ArrayProcessor.php
Please register or sign in to comment