Merge pull request #22860 from owncloud/trashbin-checkpath

Properly check path validity before deleting to trash
This commit is contained in:
C. Montero Luque 2016-03-04 13:33:07 -05:00
commit 45f49a090a
1 changed files with 1 additions and 1 deletions

View File

@ -204,7 +204,7 @@ class Trashbin {
$ownerView = new View('/' . $owner);
// file has been deleted in between
if (!$ownerView->file_exists('/files/' . $ownerPath)) {
if (is_null($ownerPath) || $ownerPath === '' || !$ownerView->file_exists('/files/' . $ownerPath)) {
return true;
}