]> source.dussan.org Git - nextcloud-server.git/commitdiff
Do not filemtime() on "." directory. Use empty string instead
authorJoas Schilling <nickvergessen@gmx.de>
Mon, 11 Aug 2014 15:05:35 +0000 (17:05 +0200)
committerJoas Schilling <nickvergessen@gmx.de>
Wed, 20 Aug 2014 09:18:43 +0000 (11:18 +0200)
Fix #9928

lib/private/files/cache/updater.php

index 8bfa5fc74cabd4ce38c2663b5ed08bcf6f821e6d..4b70acbbeadb6e3cadb7b8301424e0976f093186 100644 (file)
@@ -180,6 +180,11 @@ class Updater {
                $cache = $storage->getCache();
                $parentId = $cache->getParentId($internalPath);
                $parent = dirname($internalPath);
+
+               if ($parent === '.' || $parent === '/' || $parent === '\\') {
+                       $parent = '';
+               }
+
                if ($parentId != -1) {
                        $cache->update($parentId, array('storage_mtime' => $storage->filemtime($parent)));
                }