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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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 { |
|
|
|
|