Merge pull request #20004 from owncloud/dont-lock-user-files

Dont lock /$user/files
This commit is contained in:
Thomas Müller 2015-10-23 17:27:07 +02:00
commit 0aaef4c299
1 changed files with 1 additions and 1 deletions

View File

@ -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;