Skip to content

Commit

Permalink
Merge pull request #24484 from nextcloud/backport/24094/stable19
Browse files Browse the repository at this point in the history
[stable19] Only attempt to move to trash if a file is not in appdata
  • Loading branch information
MorrisJobke authored Dec 1, 2020
2 parents 6c7b0fa + 59e60a0 commit e4bccaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/files_trashbin/lib/Storage.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public function rmdir($path) {
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;
}

Expand Down

0 comments on commit e4bccaf

Please sign in to comment.