[BUGFIX] Detect the conversion to string "0" in stdWrap_csConv 25/48425/8
authorElmar Hinz <t3elmar@gmail.com>
Wed, 1 Jun 2016 06:40:09 +0000 (08:40 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Sun, 26 Feb 2017 21:03:22 +0000 (22:03 +0100)
commit6c6294fffb4c44b86a87f81ae72f21beecc6b4de
treea96cfebda71ce23fc5f23bc146832ba39f75067d
parent04810ae26a4b0a15abc195454a3e84a8117ce00a
[BUGFIX] Detect the conversion to string "0" in stdWrap_csConv

Check for the return value of the converter to be of type string or
return the input. The string "0" is detected.

If the return string of the converter is the empty string, return the
input. This is done to keep the previous behaviour apart from the "0"
issue.

Update the method comment.

Resolves: #76413
Releases: master
Change-Id: I1dc214a6b7cad5815d96c9cdb671862ee99b3063
Reviewed-on: https://review.typo3.org/48425
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php