[BUGFIX] Trim function name passed to GeneralUtility::callUserFunc() 68/50068/2
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Wed, 28 Sep 2016 06:55:50 +0000 (08:55 +0200)
committerGeorg Ringer <georg.ringer@gmail.com>
Thu, 29 Sep 2016 18:33:39 +0000 (20:33 +0200)
commit63be404125461a571b17e7df20dd99b7c3c768e0
treec71303ac12ab9d3203aded63964709909f49a102
parent7d0b3eba98be965c3fe2afb77940adee14708c00
[BUGFIX] Trim function name passed to GeneralUtility::callUserFunc()

The parameter `$funcName` could contain whitespaces, e.g. because of a
formatted FlexForm file. The parameter is now trimmed to remove the
whitespaces and to get a valid function reference.

Resolves: #78086
Releases: master, 7.6
Change-Id: I75af1da01a807102b2b1c1bced984c00be03580a
Reviewed-on: https://review.typo3.org/50068
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/core/Classes/Utility/GeneralUtility.php
typo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php