summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/ajax/share.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/ajax/share.php b/core/ajax/share.php
index c6da79a8a42..9f758b4e44e 100644
--- a/core/ajax/share.php
+++ b/core/ajax/share.php
@@ -35,7 +35,8 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo
if ($shareType === OCP\Share::SHARE_TYPE_LINK && $shareWith == '') {
$shareWith = null;
}
-
+ $itemSourceName=(isset($_POST['itemSourceName'])) ? $_POST['itemSourceName']:'';
+
$token = OCP\Share::shareItem(
$_POST['itemType'],
$_POST['itemSource'],