Project

General

Profile

Actions

Bug #29133

closed

Setting userFuncClassPrefix to empty string does not work

Added by Susanne Moog over 13 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2011-08-21
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.6
PHP Version:
5.3
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:

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

Actions

Also available in: Atom PDF