Browse Source

Merge pull request #9070 from nextcloud/bugfix/9028/guessing_without_target_is_useles

When formatting a share node an Empty target is invalid
pull/9074/head
Morris Jobke 8 years ago
committed by GitHub
parent
commit
18676a8ee2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      apps/files_sharing/lib/Controller/ShareAPIController.php

2
apps/files_sharing/lib/Controller/ShareAPIController.php

@ -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…
Cancel
Save