mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 10:10:49 -04:00
Only attempt to move to trash if a file is not in appdata
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
5511fb2bf6
commit
6e6d608d32
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue