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
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-11-13 10:30:35 +0300
committerMorris Jobke <hey@morrisjobke.de>2020-12-01 18:49:06 +0300
commit6e6d608d3283f96d6c12b466528017da8e52ac91 (patch)
tree84cc67612194a0427aa68409b3e5c6b94ad6d2c7
parent5511fb2bf6244d995cee8fa98bf61f5dabe10f0b (diff)
Only attempt to move to trash if a file is not in appdata
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-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 c9f1a928f3b..e9dc4f72f31 100644
--- a/apps/files_trashbin/lib/Storage.php
+++ b/apps/files_trashbin/lib/Storage.php
@@ -129,7 +129,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;
}