summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-11-19 22:29:23 +0100
committerGitHub <noreply@github.com>2020-11-19 22:29:23 +0100
commitbf23555b8b93ac883e9b80e0df23084b6dc03f21 (patch)
treef190024cf0688e2f2d697d9f66c4af6493768264 /apps/files_trashbin
parent33bceacc824a0770b3b66df3241696dff8b3ea20 (diff)
parentf4b036f249344b7f82183199154f444ea3b0b911 (diff)
downloadnextcloud-server-bf23555b8b93ac883e9b80e0df23084b6dc03f21.tar.gz
nextcloud-server-bf23555b8b93ac883e9b80e0df23084b6dc03f21.zip
Merge pull request #24094 from nextcloud/bugfix/noid/trash-appdata
Only attempt to move to trash if a file is not in appdata
Diffstat (limited to 'apps/files_trashbin')
-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;
}