summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-08-11 17:05:35 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-08-11 17:39:37 +0200
commit564bf23c1b37e3de1cbcd507687bcc8873ec1982 (patch)
tree264c06d9726192ad9db0cc810af46bbbebd1a2f5
parentd7666d9d3d1e5ba2074a85cf49543ea0a1938f57 (diff)
downloadnextcloud-server-564bf23c1b37e3de1cbcd507687bcc8873ec1982.tar.gz
nextcloud-server-564bf23c1b37e3de1cbcd507687bcc8873ec1982.zip
Do not filemtime() on "." directory. Use empty string instead
Fix #9928
-rw-r--r--lib/private/files/cache/updater.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/private/files/cache/updater.php b/lib/private/files/cache/updater.php
index 8bfa5fc74ca..4b70acbbead 100644
--- a/lib/private/files/cache/updater.php
+++ b/lib/private/files/cache/updater.php
@@ -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)));
}