[BUGFIX] Database integrity check fatal error 67/23467/2
authorStefan Fürst <stefan.fuerst@insignio.de>
Wed, 28 Aug 2013 14:08:10 +0000 (16:08 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 29 Aug 2013 13:49:11 +0000 (15:49 +0200)
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
(cherry picked from commit 81d22419488af753e394d82fc1338feff0c5795c)
Reviewed-on: https://review.typo3.org/23467

typo3/sysext/core/Classes/Integrity/DatabaseIntegrityCheck.php

index 8226e4c..46c4ddd 100644 (file)
@@ -563,7 +563,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))) {
@@ -712,4 +712,4 @@ class DatabaseIntegrityCheck {
 }
 
 
-?>
\ No newline at end of file
+?>