diff options
Diffstat (limited to 'core/ajax/share.php')
-rw-r--r-- | core/ajax/share.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/ajax/share.php b/core/ajax/share.php index be72e36541a..98e5a05b272 100644 --- a/core/ajax/share.php +++ b/core/ajax/share.php @@ -34,14 +34,15 @@ 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'], $shareType, $shareWith, $_POST['permissions'], - $_POST['itemSourceName'], + $itemSourceName, (!empty($_POST['expirationDate']) ? new \DateTime($_POST['expirationDate']) : null) ); |