[BUGFIX] Trim function name passed to GeneralUtility::callUserFunc() 36/50036/3
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:15 +0000 (20:33 +0200)
commitf8b99f0808f62012aa3d8626cbb46acf3dc4e7c4
tree3d1e0fb1a169199bf97c48e6cdda1a09549e37a2
parent19904b1c7c0fc8fc1b00be24e6a4edca8951d0e7
[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/50036
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Eric Chavaillaz <eric@hemmer.ch>
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
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