summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2018-04-11 00:36:07 +0200
committerGitHub <noreply@github.com>2018-04-11 00:36:07 +0200
commit656df69cf04b2becb72b003e0a8654a93bd38777 (patch)
tree1e0fd81f7937e1e5aa1f2d1ae7c8363db38a5e4c /apps/files_sharing
parent6209a66f16896226ead262314844728ed6a23466 (diff)
parent36bd4b7ddee48fcbb442c8c03955114608dee1b1 (diff)
downloadnextcloud-server-656df69cf04b2becb72b003e0a8654a93bd38777.tar.gz
nextcloud-server-656df69cf04b2becb72b003e0a8654a93bd38777.zip
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
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/lib/Controller/ShareAPIController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/Controller/ShareAPIController.php b/apps/files_sharing/lib/Controller/ShareAPIController.php
index 82a93c446e2..470e4c53c5c 100644
--- a/apps/files_sharing/lib/Controller/ShareAPIController.php
+++ b/apps/files_sharing/lib/Controller/ShareAPIController.php
@@ -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 {