Merge pull request #9073 from nextcloud/backport/9070/guessing_without_target_is_useles-13
[stable13] When formatting a share node an Empty target is invalid
This commit is contained in:
commit
656df69cf0
|
@ -147,7 +147,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 New Issue