From f0b86727299728bb7243e99584a21038c54123cd Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 20 May 2015 15:22:53 +0200 Subject: [PATCH] fix locking root of a view --- lib/private/files/view.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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