[BUGFIX] Database integrity check fatal error 24/23424/4
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:48:12 +0000 (15:48 +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
typo3/sysext/core/Classes/Integrity/DatabaseIntegrityCheck.php

index 8e8f767..67d413f 100644 (file)
@@ -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))) {