mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
Do not filemtime() on "." directory. Use empty string instead
Fix #9928
This commit is contained in:
parent
d7666d9d3d
commit
564bf23c1b
1 changed files with 5 additions and 0 deletions
5
lib/private/files/cache/updater.php
vendored
5
lib/private/files/cache/updater.php
vendored
|
|
@ -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)));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue