Skip to content

Commit 7d786a4

Browse files
juliusknorrMorrisJobke
authored andcommitted
Only attempt to move to trash if a file is not in appdata
Signed-off-by: Julius Härtl <jus@bitgrid.net>
1 parent 86da501 commit 7d786a4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)