From: Steffen Kamper Date: Thu, 15 Jan 2009 20:35:43 +0000 (+0000) Subject: Fixed bug #8787: titles length in list module (thanks to Stefano Cecere) X-Git-Tag: TYPO3_4-3-0alpha2~287 X-Git-Url: http://git.typo3.org/Packages/TYPO3.CMS.git/commitdiff_plain/e9bbd4af7cea28529d50696a531366939fa65ed8 Fixed bug #8787: titles length in list module (thanks to Stefano Cecere) git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@4722 709f56b5-9817-0410-a4d7-c38de5d9e867 --- diff --git a/ChangeLog b/ChangeLog index 1bde61c4c4bd..65dad0b666f0 100755 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-01-14 Steffen Kamper + + * Fixed bug #8787: titles length in list module (thanks to Stefano Cecere) + 2009-01-14 Jeff Segars * Fixed bug #10064: config.admPanel has no effect (thanks to Ralf Hettinger) diff --git a/typo3/class.db_list.inc b/typo3/class.db_list.inc index aeb936260787..44a47bdd7672 100755 --- a/typo3/class.db_list.inc +++ b/typo3/class.db_list.inc @@ -563,7 +563,7 @@ class recordList extends t3lib_recordList { if (!strcmp($code,'')) { $code = '['.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.no_title',1).'] - '.htmlspecialchars(t3lib_div::fixed_lgd_cs(t3lib_BEfunc::getRecordTitle($table,$row),$GLOBALS['BE_USER']->uc['titleLen'])); } else { - $code = htmlspecialchars(t3lib_div::fixed_lgd_cs($code,$this->fixedL)); + $code = htmlspecialchars(t3lib_div::fixed_lgd_cs($code, t3lib_div::intval_positive($GLOBALS['BE_USER']->uc['titleLen']) ? $GLOBALS['BE_USER']->uc['titleLen'] : $this->fixedL)); if ($code != htmlspecialchars($origCode)) { $code = ''.$code.''; }