Bug #59548
closedTypoScript parser implementation doubles backslashes
0%
Description
I've found a potential bug in the parse() method of the TS parser:
$parser = t3lib_div::makeInstance( 't3lib_tsparser' );
$parser->parse( $tsString );
If the TypoScript configuration contains a backslash in one of the values, it's duplicated in the result. As this modifies the content of the value, it leads to problems where the original value is required for lookups.
This happened in TYPO3 6.2.1 but is maybe a problem that also exists in 6.1, 6.0 and earlier.
Updated by Norbert Sendetzky over 10 years ago
- Priority changed from Should have to Must have
Updated by Susanne Moog over 9 years ago
- Status changed from New to Resolved
This should be fixed in 6.2.2 by https://review.typo3.org/#/c/19480/
and works as documented here: http://docs.typo3.org/typo3cms/TyposcriptSyntaxReference/Syntax/TypoScriptSyntax/Index.html
Tests for that can be found at:
https://github.com/TYPO3/TYPO3.CMS/blob/master/typo3/sysext/core/Tests/Unit/TypoScript/Parser/TypoScriptParserTest.php#L253
I also manually tested with
key = va\lue
which results in
array(
key => va\lue
)
(no double backslash).
If there is still a problem, please open a new ticket. Thanks.