If a file or directory below uploads/ is not readable by the
executing user, the integrity check system in db check module
menu may fatal. This is sanatized by the patch.
Resolves: #51460
Releases: 6.2, 6.1, 6.0
Change-Id: Ide3401c014aa7bec33585083f81f30c00100da09
Reviewed-on: https://review.typo3.org/23424
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
$this->checkFileRefs = $newCheckFileRefs;
foreach ($this->checkFileRefs as $folder => $fileArr) {
$path = PATH_site . $folder;
- if (@is_dir($path)) {
+ if (@is_dir($path) && @is_readable($path)) {
$d = dir($path);
while ($entry = $d->read()) {
if (@is_file(($path . '/' . $entry))) {