Skip to content

Commit e4bccaf

Browse files
authored
Merge pull request #24484 from nextcloud/backport/24094/stable19
[stable19] Only attempt to move to trash if a file is not in appdata
2 parents 6c7b0fa + 59e60a0 commit e4bccaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/files_trashbin/lib/Storage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public function rmdir($path) {
128128
protected function shouldMoveToTrash($path) {
129129
$normalized = Filesystem::normalizePath($this->mountPoint . '/' . $path);
130130
$parts = explode('/', $normalized);
131-
if (count($parts) < 4) {
131+
if (count($parts) < 4 || strpos($normalized, '/appdata_') === 0) {
132132
return false;
133133
}
134134

0 commit comments

Comments
 (0)