aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Share20
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-11-13 13:48:32 +0100
committerJulius Härtl <jus@bitgrid.net>2020-11-13 13:48:32 +0100
commitd665981447eb9e09665611b2968cdc9c7cbf4963 (patch)
tree7a12393c8960ec78314ae0ff8c52a4e25b6025c1 /lib/private/Share20
parent10aa22dd45c10b7d7729f648dc8e65efb0d937ec (diff)
downloadnextcloud-server-d665981447eb9e09665611b2968cdc9c7cbf4963.tar.gz
nextcloud-server-d665981447eb9e09665611b2968cdc9c7cbf4963.zip
Only check path for being accessible when the storage is a object home
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private/Share20')
-rw-r--r--lib/private/Share20/DefaultShareProvider.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Share20/DefaultShareProvider.php b/lib/private/Share20/DefaultShareProvider.php
index e43529086fd..64aa3127ba0 100644
--- a/lib/private/Share20/DefaultShareProvider.php
+++ b/lib/private/Share20/DefaultShareProvider.php
@@ -824,7 +824,7 @@ class DefaultShareProvider implements IShareProvider {
$pathSections = explode('/', $data['path'], 2);
// FIXME: would not detect rare md5'd home storage case properly
if ($pathSections[0] !== 'files'
- && in_array(explode(':', $data['storage_string_id'], 2)[0], ['home', 'object'])) {
+ && (strpos($data['storage_string_id'], 'home::') === 0 || strpos($data['storage_string_id'], 'object::user') === 0)) {
return false;
}
return true;