summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-05-20 15:22:53 +0200
committerRobin Appelman <icewind@owncloud.com>2015-06-01 13:22:56 +0200
commitf0b86727299728bb7243e99584a21038c54123cd (patch)
tree1ed3cc805b58adf1eb7e6b8c9189fd13c06e9f58 /lib/private
parentb98dd3ceb84f1372415fd69bc7992d0bba954f3f (diff)
downloadnextcloud-server-f0b86727299728bb7243e99584a21038c54123cd.tar.gz
nextcloud-server-f0b86727299728bb7243e99584a21038c54123cd.zip
fix locking root of a view
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/files/view.php2
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