diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-05-20 15:22:53 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2015-06-01 13:22:56 +0200 |
commit | f0b86727299728bb7243e99584a21038c54123cd (patch) | |
tree | 1ed3cc805b58adf1eb7e6b8c9189fd13c06e9f58 /lib/private | |
parent | b98dd3ceb84f1372415fd69bc7992d0bba954f3f (diff) | |
download | nextcloud-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.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 |