From 9d7138aa50a87108d9d6ba0849cea0bc8f27c9d9 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 23 Oct 2015 14:17:12 +0200 Subject: [PATCH] Dont lock /$user/files --- lib/private/files/view.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/files/view.php b/lib/private/files/view.php index 04932d6938..1639f765f6 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;