Skip to content

Commit

Permalink
[BUGFIX] Fallback to empty array if ExportController receives no input
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
andreaskienast committed Aug 16, 2019
1 parent ef3912a commit 0b67a0d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -109,7 +109,7 @@ public function mainAction(ServerRequestInterface $request): ResponseInterface
);

// 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;
Expand Down

0 comments on commit 0b67a0d

Please sign in to comment.