Project

General

Profile

Actions

Bug #59548

closed

TypoScript parser implementation doubles backslashes

Added by Norbert Sendetzky over 10 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2014-06-13
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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.

Actions #1

Updated by Norbert Sendetzky over 10 years ago

  • Priority changed from Should have to Must have
Actions #2

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.

Actions #3

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF