Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-11-13 10:30:35 +0300
committerJulius Härtl <jus@bitgrid.net>2020-11-13 10:30:35 +0300
commitf4b036f249344b7f82183199154f444ea3b0b911 (patch)
treecec51776454950a5f98a75f0eec0df580ea8102f /apps
parent10aa22dd45c10b7d7729f648dc8e65efb0d937ec (diff)
Only attempt to move to trash if a file is not in appdata
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps')
-rw-r--r--apps/files_trashbin/lib/Storage.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_trashbin/lib/Storage.php b/apps/files_trashbin/lib/Storage.php
index 2064b7d664f..806ce218772 100644
--- a/apps/files_trashbin/lib/Storage.php
+++ b/apps/files_trashbin/lib/Storage.php
@@ -128,7 +128,7 @@ class Storage extends Wrapper {
protected function shouldMoveToTrash($path) {
$normalized = Filesystem::normalizePath($this->mountPoint . '/' . $path);
$parts = explode('/', $normalized);
- if (count($parts) < 4) {
+ if (count($parts) < 4 || strpos($normalized, '/appdata_') === 0) {
return false;
}