Merge pull request #9070 from nextcloud/bugfix/9028/guessing_without_target_is_useles
When formatting a share node an Empty target is invalid
This commit is contained in:
commit
18676a8ee2
1 changed files with 1 additions and 1 deletions
|
@ -154,7 +154,7 @@ class ShareAPIController extends OCSController {
|
|||
if (empty($nodes)) {
|
||||
// fallback to guessing the path
|
||||
$node = $userFolder->get($share->getTarget());
|
||||
if ($node === null) {
|
||||
if ($node === null || $share->getTarget() === '') {
|
||||
throw new NotFoundException();
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue