Index: typo3/sysext/cms/tslib/class.tslib_content.php =================================================================== --- typo3/sysext/cms/tslib/class.tslib_content.php (Revision 8768) +++ typo3/sysext/cms/tslib/class.tslib_content.php (Arbeitskopie) @@ -3771,7 +3771,17 @@ if ($conf['numRows.']) {$content=$this->numRows($conf['numRows.']);} if ($conf['filelist'] || $conf['filelist.']) {$content=$this->filelist($this->stdWrap($conf['filelist'], $conf['filelist.']));} if ($conf['preUserFunc']) {$content = $this->callUserFunction($conf['preUserFunc'], $conf['preUserFunc.'], $content);} + if ($conf['random'] === 'text' || $conf['random'] === 'number') { + $min = $conf['random.']['min'] ? $conf['random.']['min'] : 1; + $max = $conf['random.']['max'] ? $conf['random.']['max'] : 9999; + $content = mt_rand($min, $max); + + if ($conf['random'] === 'text') { + $content = t3lib_div::generateRandomBytes($content); + } + } + foreach($this->stdWrapHookObjects as $hookObject) { $content = $hookObject->stdWrapOverride($content, $conf, $this); }