mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 10:10:49 -04:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue