diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/files/view.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/files/view.php b/lib/private/files/view.php index 6bf864c00ab..db904e57cb9 100644 --- a/lib/private/files/view.php +++ b/lib/private/files/view.php @@ -1618,11 +1618,11 @@ class View { * @return string[] */ private function getParents($path) { + $path = trim($path, '/'); if (!$path) { return []; } - $path = trim($path, '/'); $parts = explode('/', $path); // remove the single file |