Issue Bug Closed

#84520stdWrap.ifBlank introduced different behavior

Oliver Hader 03/22/18, 09:39 updated 10/02/18, 10:51

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)

Reviews 2