mirror of
https://github.com/nextcloud/server.git
synced 2024-08-26 17:55:04 +02:00
if file doesn't exist, check parent folder
This commit is contained in:
parent
2005c162bd
commit
277f25222a
@ -51,11 +51,17 @@ class Proxy extends \OC_FileProxy {
|
||||
*/
|
||||
private function isExcludedPath($path, $uid) {
|
||||
|
||||
$view = new \OC\Files\View();
|
||||
|
||||
// files outside of the files-folder are excluded
|
||||
if(strpos($path, '/' . $uid . '/files') !== 0) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!$view->file_exists($path)) {
|
||||
$path = dirname($path);
|
||||
}
|
||||
|
||||
// we don't encrypt server-to-server shares
|
||||
list($storage, ) = \OC\Files\Filesystem::resolvePath($path);
|
||||
if ($storage instanceof OCA\Files_Sharing\External\Storage) {
|
||||
|
0
config/.htaccess
Normal file → Executable file
0
config/.htaccess
Normal file → Executable file
Loading…
Reference in New Issue
Block a user