Revert "[BUGFIX] Test ifBlank with strlen again" 22/56422/2
authorOliver Hader <oliver@typo3.org>
Thu, 22 Mar 2018 10:24:36 +0000 (11:24 +0100)
committerOliver Hader <oliver.hader@typo3.org>
Thu, 22 Mar 2018 10:46:30 +0000 (11:46 +0100)
commit00ff302556417e8d182677355b4bc4822eed7bee
tree18dc53b1703d001d35b289497b57ac80b0a567de
parent31075b95d30a91df8f19646deb8d187b7725cdf0
Revert "[BUGFIX] Test ifBlank with strlen again"

This reverts commit c12fe3c17c3d339e9c84e8867ac9f6433e4953ca.

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)

Thus, the trim() part is basically missing currently. To avoid this
regression concerning the change of behavior, the change is reverted.

Related: #84434
Resolves: #84520
Releases: master, 8.7
Change-Id: I1fcbd0d249e18d06a96d481bf44a39de0662bed1
Reviewed-on: https://review.typo3.org/56422
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
Tested-by: Oliver Hader <oliver.hader@typo3.org>
typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php
typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php