diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-08-11 17:05:35 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-08-11 17:39:37 +0200 |
commit | 564bf23c1b37e3de1cbcd507687bcc8873ec1982 (patch) | |
tree | 264c06d9726192ad9db0cc810af46bbbebd1a2f5 | |
parent | d7666d9d3d1e5ba2074a85cf49543ea0a1938f57 (diff) | |
download | nextcloud-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.php | 5 |
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))); } |