Issue Bug Closed

#29133Setting userFuncClassPrefix to empty string does not work

Susanne Moog 08/21/11, 11:33 updated 10/02/18, 12:19

Description

Setting $GLOBALS[‘TYPO3_CONF_VARS’][‘FE’][‘userFuncClassPrefix’] to an empty string – to allow all prefixes – does not work as expected as the check in t3lib_div expects a valid string with length > 0. Adjust t3lib_div::hasValidClassPrefix to also allow empty prefix var.

How to test:
Set $GLOBALS[‘TYPO3_CONF_VARS’][‘FE’][‘userFuncClassPrefix’] to ‘‘
Run the unit tests for t3lib_div
See the test for hasValidClassPrefix fail
Apply the changes
Run the unit tests again

Reviews 1