Project

General

Profile

Bug #20479 » 1152.simple.patch

Administrator Admin, 2009-05-20 13:34

View differences:

typo3/sysext/impexp/app/index.php (working copy)
$inData['pagetree']['maxNumber'] = t3lib_div::intInRange($inData['pagetree']['maxNumber'],1,10000,100);
$inData['listCfg']['maxNumber'] = t3lib_div::intInRange($inData['listCfg']['maxNumber'],1,10000,100);
$inData['maxFileSize'] = t3lib_div::intInRange($inData['maxFileSize'],1,10000,1000);
$inData['filename'] = trim(preg_replace('/[^[:alnum:]./_-]*/','',preg_replace('/\.(t3d|xml)$/','',$inData['filename'])));
$inData['filename'] = trim(preg_replace('/[^[:alnum:]_-]*/','',preg_replace('/\.(t3d|xml)$/','',$inData['filename'])));
if (strlen($inData['filename'])) {
$inData['filename'].= $inData['filetype']=='xml' ? '.xml' : '.t3d';
}
(2-2/2)