[TASK] Raise maximum settable numbers in export 02/30202/2
authorMarc Bastian Heinrichs <typo3@mbh-software.de>
Mon, 19 May 2014 09:43:07 +0000 (11:43 +0200)
committerGeorg Ringer <georg.ringer@gmail.com>
Fri, 23 May 2014 03:19:43 +0000 (05:19 +0200)
The maximums for today's exports are limited to strict.
It's 10MB for a settable file size included in exports;
raise it to 1000MB. The maximum settable number of
records is 10000; raise it to 1000000.

Resolves: #58912
Releases: 6.2
Change-Id: If2613b453cfbfda5c4909770064f112c23eca83b
Reviewed-on: https://review.typo3.org/30202
Reviewed-by: Tymoteusz Motylewski
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
typo3/sysext/impexp/Classes/Controller/ImportExportController.php

index b43830d..af60b43 100644 (file)
@@ -205,9 +205,9 @@ class ImportExportController extends \TYPO3\CMS\Backend\Module\BaseScriptClass {
        public function exportData($inData) {
                // BUILDING EXPORT DATA:
                // Processing of InData array values:
-               $inData['pagetree']['maxNumber'] = MathUtility::forceIntegerInRange($inData['pagetree']['maxNumber'], 1, 10000, 100);
-               $inData['listCfg']['maxNumber'] = MathUtility::forceIntegerInRange($inData['listCfg']['maxNumber'], 1, 10000, 100);
-               $inData['maxFileSize'] = MathUtility::forceIntegerInRange($inData['maxFileSize'], 1, 10000, 1000);
+               $inData['pagetree']['maxNumber'] = MathUtility::forceIntegerInRange($inData['pagetree']['maxNumber'], 1, 1000000, 100);
+               $inData['listCfg']['maxNumber'] = MathUtility::forceIntegerInRange($inData['listCfg']['maxNumber'], 1, 1000000, 100);
+               $inData['maxFileSize'] = MathUtility::forceIntegerInRange($inData['maxFileSize'], 1, 1000000, 1000);
                $inData['filename'] = trim(preg_replace('/[^[:alnum:]._-]*/', '', preg_replace('/\\.(t3d|xml)$/', '', $inData['filename'])));
                if (strlen($inData['filename'])) {
                        $inData['filename'] .= $inData['filetype'] == 'xml' ? '.xml' : '.t3d';