Project

General

Profile

Actions

Bug #45945

closed

optionSplit din't work well when using noTrimWrap special configuration

Added by Christophe Monard about 11 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Content Rendering
Target version:
-
Start date:
2013-03-01
Due date:
% Done:

100%

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

Description

Hi there,

When using optionSplit by calling splitConfArray function, there might be a bug when setting noTrimWrap to "|| |" or "| ||".

an easy correction is to add a special condition for each segments:

File: t3lib/class.t3lib_tstemplate.php
for 4.5:

    L. 1135: change to if ($main[0] && $cKey != 'noTrimWrap') {
    L. 1139: change to if ($main[1] && $cKey != 'noTrimWrap') {
    L. 1143: change to if ($main[2] && $cKey != 'noTrimWrap') {

for 4.7:

    L. 1009: change to if ($main[0] && $cKey != 'noTrimWrap') {
    L. 1013: change to if ($main[1] && $cKey != 'noTrimWrap') {
    L. 1017: change to if ($main[2] && $cKey != 'noTrimWrap') {

Actions

Also available in: Atom PDF