Skip to content
Snippets Groups Projects
Commit 9cbec075 authored by Daniel Goerz's avatar Daniel Goerz Committed by Christian Kuhn
Browse files

[BUGFIX] Prevent calling isFileValid with null

Resolves: #93997
Releases: master
Change-Id: Idf0591125371cc25f53b8c9cc178a5c595c7be2d
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/68887


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent c381b47f
Branches
Tags
No related merge requests found
......@@ -246,10 +246,6 @@ parameters:
message: "#^Parameter \\#1 \\$manifest of method TYPO3\\\\CMS\\\\Core\\\\Core\\\\ClassLoadingInformationGenerator\\:\\:getAutoloadSectionFromManifest\\(\\) expects stdClass, object given\\.$#"
count: 2
path: typo3/sysext/core/Classes/Core/ClassLoadingInformationGenerator.php
-
message: "#^Parameter \\#1 \\$file of method TYPO3\\\\CMS\\\\Core\\\\Controller\\\\FileDumpController\\:\\:isFileValid\\(\\) expects TYPO3\\\\CMS\\\\Core\\\\Resource\\\\FileInterface, TYPO3\\\\CMS\\\\Core\\\\Resource\\\\File\\|null given\\.$#"
count: 1
path: typo3/sysext/core/Classes/Controller/FileDumpController.php
-
message: "#^Parameter \\#2 \\$callback of function array_walk expects callable\\(\\)\\: mixed, array\\(\\$this\\(TYPO3\\\\CMS\\\\Core\\\\Cache\\\\Backend\\\\AbstractBackend\\), 'flushByTag'\\) given\\.$#"
count: 1
......
......@@ -182,8 +182,7 @@ class FileDumpController
$file = $this->resourceFactory->getFileObject($parameters['f']);
if ($file->isDeleted() || $file->isMissing()) {
$file = null;
}
if (!$this->isFileValid($file)) {
} elseif (!$this->isFileValid($file)) {
$file = null;
}
} catch (\Exception $e) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment