[BUGFIX] Fallback to empty array if ExportController receives no input 02/61502/2
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Fri, 16 Aug 2019 07:58:30 +0000 (09:58 +0200)
committerAndreas Fernandez <a.fernandez@scripting-base.de>
Fri, 16 Aug 2019 08:40:47 +0000 (10:40 +0200)
Resolves: #88968
Releases: master
Change-Id: I1cab8a60e5b562376f9ac6bb6836e949bb9b1b50
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/61502
Reviewed-by: Josef Glatz <josefglatz@gmail.com>
Reviewed-by: Pascal Querner <pq@paskl.de>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Pascal Querner <pq@paskl.de>
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
typo3/sysext/impexp/Classes/Controller/ExportController.php

index 49822a5..068cf72 100644 (file)
@@ -109,7 +109,7 @@ class ExportController extends ImportExportController
         );
 
         // Input data grabbed:
-        $inData = GeneralUtility::_GP('tx_impexp');
+        $inData = $request->getParsedBody()['tx_impexp'] ?? $request->getQueryParams()['tx_impexp'] ?? [];
         if (!array_key_exists('excludeDisabled', $inData)) {
             // flag doesn't exist initially; state is on by default
             $inData['excludeDisabled'] = 1;