[BUGFIX] Make TypoScriptParser sortList more strict
When calling the := sortList() with a "numeric" modifier of the TypoScript parser with a string, the sort() method differs between PHP versions. In order to make this behaviour more strict, a check is done before the elements are sorted to only have numeric values in the list, otherwise an Exception is now thrown. As this changes behaviour, the test should be excluded for PHP7 in 6.2, the behaviour cannot be modified in 6.2 without possibly breaking the output of a Frontend site. Resolves: #65317 Releases: master Change-Id: Ife4f0de367398e6e5e35b6df9f1c0ea980597773 Reviewed-on: http://review.typo3.org/42112 Reviewed-by:Christian Kuhn <lolli@schwarzbu.ch> Tested-by:
Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by:
Susanne Moog <typo3@susannemoog.de> Tested-by:
Susanne Moog <typo3@susannemoog.de>
Showing
- typo3/sysext/core/Classes/TypoScript/Parser/TypoScriptParser.php 9 additions, 0 deletions...ysext/core/Classes/TypoScript/Parser/TypoScriptParser.php
- typo3/sysext/core/Documentation/Changelog/master/Breaking-65317-TypoScriptParserSortListSanitizesInputOnNumericalSort.rst 28 additions, 0 deletions...TypoScriptParserSortListSanitizesInputOnNumericalSort.rst
- typo3/sysext/core/Tests/Unit/TypoScript/Parser/TypoScriptParserTest.php 34 additions, 4 deletions...ore/Tests/Unit/TypoScript/Parser/TypoScriptParserTest.php
Please register or sign in to comment