#42921t3lib_div->trimExplode fills database table sys_log
Description
There are several uses of t3lib_div::trimExplode with wrong parameter types.
The second parameter must be a string, otherwise a php warning is stored to the sys_log database table, e.g. in tslib_fe::initFEuser (line 623) where the argument is null or in t3lib_userAuth::getAuthInfoArray (line 1299) where the argument is an integer…
This could be easily resolved by mapping the variable $string to string like this:
public static function trimExplode($delim, $string, $removeEmptyValues = FALSE, $limit = 0) {
$explodedValues = explode($delim, (string)$string);
best regards
Christian
Reviews 6
- TYPO3_4-7 24004[BUGFIX] Fix PHP warning trigged in getAuthInfoArray()
- TYPO3_4-5 22341[BUGFIX] Fix PHP warning trigged in initFEuser
- TYPO3_4-7 22340[BUGFIX] Fix PHP warning trigged in initFEuser
- TYPO3_6-0 22339[BUGFIX] Fix PHP warning trigged in initFEuser
- TYPO3_6-1 22338[BUGFIX] Fix PHP warning trigged in initFEuser
- main 22327[BUGFIX] Fix PHP warning trigged in initFEuser