Skip to content

Commit 48ed211

Browse files
committed
Avoid error on init request in the module
1 parent 75cfd58 commit 48ed211

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Classes/Controller/ImportrController.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
use TYPO3\CMS\Core\Messaging\FlashMessageService;
1818
use TYPO3\CMS\Core\Resource\ResourceFactory;
1919
use TYPO3\CMS\Core\Utility\GeneralUtility;
20+
use TYPO3\CMS\Core\Utility\MathUtility;
2021
use TYPO3\CMS\Extbase\Mvc\Controller\ActionController;
2122
use TYPO3\CMS\Extbase\Utility\DebuggerUtility;
2223

@@ -71,7 +72,7 @@ public function indexAction():ResponseInterface
7172
{
7273
$viewVariables = [];
7374
$combinedIdentifier = GeneralUtility::_GP('id');
74-
if (isset($combinedIdentifier) && \is_string($combinedIdentifier)) {
75+
if (isset($combinedIdentifier) && \is_string($combinedIdentifier) && !MathUtility::canBeInterpretedAsInteger($combinedIdentifier)) {
7576
$folder = $this->resourceFactory->getFolderObjectFromCombinedIdentifier($combinedIdentifier);
7677
$files = [];
7778
foreach ($folder->getFiles() as $file) {

0 commit comments

Comments
 (0)