mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
prevent recursion when moving a file to the trashbin
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
f0c85a0f5f
commit
0d41138c6e
1 changed files with 4 additions and 1 deletions
|
|
@ -99,7 +99,10 @@ class TrashManager implements ITrashManager {
|
|||
}
|
||||
try {
|
||||
$backend = $this->getBackendForStorage($storage);
|
||||
return $backend->moveToTrash($storage, $internalPath);
|
||||
$this->trashPaused = true;
|
||||
$result = $backend->moveToTrash($storage, $internalPath);
|
||||
$this->trashPaused = false;
|
||||
return $result;
|
||||
} catch (BackendNotFoundException $e) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue