summaryrefslogtreecommitdiffstats
path: root/lib/private/files/view.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-10-23 14:17:12 +0200
committerRobin Appelman <icewind@owncloud.com>2015-10-23 14:59:16 +0200
commit9d7138aa50a87108d9d6ba0849cea0bc8f27c9d9 (patch)
tree50d00bf3b59d28ea7e58efd70d80b4fb54f66204 /lib/private/files/view.php
parent3d08964b6491ac5b79fbebe73b04417fa216a425 (diff)
downloadnextcloud-server-9d7138aa50a87108d9d6ba0849cea0bc8f27c9d9.tar.gz
nextcloud-server-9d7138aa50a87108d9d6ba0849cea0bc8f27c9d9.zip
Dont lock /$user/files
Diffstat (limited to 'lib/private/files/view.php')
-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 04932d69384..1639f765f69 100644
--- a/lib/private/files/view.php
+++ b/lib/private/files/view.php
@@ -1941,7 +1941,7 @@ class View {
$pathSegments = explode('/', $path);
if (isset($pathSegments[2])) {
// E.g.: /username/files/path-to-file
- return $pathSegments[2] === 'files';
+ return ($pathSegments[2] === 'files') && (count($pathSegments) > 3);
}
return true;