[!!!][BUGFIX] Avoid to call stdWrap twice 66/32466/6
authorMarkus Klein <klein.t3@reelworx.at>
Thu, 28 Aug 2014 00:10:55 +0000 (02:10 +0200)
committerMarkus Klein <klein.t3@reelworx.at>
Wed, 3 Sep 2014 10:34:34 +0000 (12:34 +0200)
commit23b63c2bbf87cd104fd42dca84cb861db0f55f47
tree90cb0b484a31a3f97327b8fac541e1c9b5993f30
parent67732765c14ac3c3a2f1e345cbf2f813f4774da3
[!!!][BUGFIX] Avoid to call stdWrap twice

Using the recursive stdWrap will work on the stdWrap twice, although the
output is created only once.

Fix this by preventing the recursive call to stdWrap() if the
current function name is "stdWrap" as this will trigger a call to
stdWrap_stdWrap() later on anyway.

This will change rendering if LOAD_REGISTER or something similar
is used in a recursive stdWrap context.

Resolves: #60135
Releases: 6.3
Change-Id: I728f637b4e34f26b9cf6951f04667c8195638b3d
Reviewed-on: http://review.typo3.org/32466
Reviewed-by: Helmut Hummel <helmut.hummel@typo3.org>
Tested-by: Helmut Hummel <helmut.hummel@typo3.org>
Reviewed-by: Stefan Froemken <froemken@gmail.com>
Tested-by: Stefan Froemken <froemken@gmail.com>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/core/Documentation/Changelog/master/Breaking-60135-RecursiveStdWrapChange.rst [new file with mode: 0644]
typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php
typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php