Project

General

Profile

Actions

Bug #84520

closed

stdWrap.ifBlank introduced different behavior

Added by Oliver Hader over 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
Start date:
2018-03-22
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:

Description

The patch for issue #84434 introduced a different behavior for the stdWrap.ifBlank feature.
The current implementation now ignores whitespace characters (tab, spaces, new lines, carriage return) which was not the case in previous TYPO3 versions - as a comparison:

  • TYPO3 v7: trim($content) === ''
  • TYPO3 v6.2: !strlen(trim($content))
  • TYPO3 v.4.5: !strlen(trim($content))
  • TYPO3 v4.3: !strlen(trim($content)
Actions

Also available in: Atom PDF