Merge pull request #24483 from nextcloud/backport/24094/stable20
[stable20] Only attempt to move to trash if a file is not in appdata
This commit is contained in:
commit
910fecf8f8
|
@ -128,7 +128,7 @@ class Storage extends Wrapper {
|
||||||
protected function shouldMoveToTrash($path) {
|
protected function shouldMoveToTrash($path) {
|
||||||
$normalized = Filesystem::normalizePath($this->mountPoint . '/' . $path);
|
$normalized = Filesystem::normalizePath($this->mountPoint . '/' . $path);
|
||||||
$parts = explode('/', $normalized);
|
$parts = explode('/', $normalized);
|
||||||
if (count($parts) < 4) {
|
if (count($parts) < 4 || strpos($normalized, '/appdata_') === 0) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue