Project

General

Profile

Actions

Bug #31062

closed

Unable to use token=0 for -> split

Added by Sebastiaan de Jonge over 12 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Category:
TypoScript
Target version:
Start date:
2011-10-18
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.4
PHP Version:
Tags:
Complexity:
no-brainer
Is Regression:
Sprint Focus:

Description

Due to an improper check on the token, it is not possible to use '0' (zero) as a splitting character. See the code below:

$conf['token'] = isset($conf['token.'])                                                                                                                                                                
? $this->stdWrap($conf['token'], $conf['token.'])
: $conf['token'];
if (!$conf['token']) {
return $value;
}

The part "if (!$conf['token'])" will return false if "$conf['token']" is set to 0 (zero). A solution like the following should solve the problem.

$conf['token'] = isset($conf['token.'])                                                                                                                                                                
? $this->stdWrap($conf['token'], $conf['token.'])
: $conf['token'];
if (!$conf['token'] && $conf['token'] != '0') {
return $value;
}

I will try to add a patch later today.

Actions

Also available in: Atom PDF