diff options
Diffstat (limited to 'lib/private/files/view.php')
-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 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; |