summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-10-23 17:27:07 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-10-23 17:27:07 +0200
commit0aaef4c2993f6fd37136904142ed58986b5d8f27 (patch)
tree0014c5b446404d18f4ab900c1bb01a9f9e202c07
parent190acd28e5607fa876f1e9036712affb00ebab36 (diff)
parent9d7138aa50a87108d9d6ba0849cea0bc8f27c9d9 (diff)
downloadnextcloud-server-0aaef4c2993f6fd37136904142ed58986b5d8f27.tar.gz
nextcloud-server-0aaef4c2993f6fd37136904142ed58986b5d8f27.zip
Merge pull request #20004 from owncloud/dont-lock-user-files
Dont lock /$user/files
-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;