[Pkg-owncloud-commits] [owncloud] 93/129: Dont lock /$user/files
David Prévot
taffit at moszumanska.debian.org
Thu Nov 5 01:04:27 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch stable8
in repository owncloud.
commit ad95e308baff5de9d7d76dea6e8d8c729a5e600f
Author: Robin Appelman <icewind at owncloud.com>
Date: Fri Oct 23 14:17:12 2015 +0200
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 1353fac..73fc937 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;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list