From 81d22419488af753e394d82fc1338feff0c5795c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stefan=20F=C3=BCrst?= Date: Wed, 28 Aug 2013 16:08:10 +0200 Subject: [PATCH] [BUGFIX] Database integrity check fatal error 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 --- typo3/sysext/core/Classes/Integrity/DatabaseIntegrityCheck.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typo3/sysext/core/Classes/Integrity/DatabaseIntegrityCheck.php b/typo3/sysext/core/Classes/Integrity/DatabaseIntegrityCheck.php index 8e8f7672eb1f..67d413fbdbbd 100644 --- a/typo3/sysext/core/Classes/Integrity/DatabaseIntegrityCheck.php +++ b/typo3/sysext/core/Classes/Integrity/DatabaseIntegrityCheck.php @@ -555,7 +555,7 @@ class DatabaseIntegrityCheck { $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))) { -- 2.20.1