summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2014-08-11 13:32:16 +0200
committerJörn Friedrich Dreyer <jfd@butonic.de>2014-08-11 13:32:16 +0200
commitde9fe3a8d4491268e4c0eeeb4114d32549205079 (patch)
treeecdce08cc912649af63e7db550c9d2d3b1a61314 /core
parent86ae3bd1e7d20e4f28ea9d7b9f71f1fdef0087aa (diff)
parent6d06a765f4cf5ba194f892b6674eeaa6bc6f93c0 (diff)
downloadnextcloud-server-de9fe3a8d4491268e4c0eeeb4114d32549205079.tar.gz
nextcloud-server-de9fe3a8d4491268e4c0eeeb4114d32549205079.zip
Merge pull request #10096 from owncloud/fix-6971-master
in case $_POST['itemSourceName'] does not exist we simply default it to ...
Diffstat (limited to 'core')
-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 4b5a6cd664f..37f374c4992 100644
--- a/core/ajax/share.php
+++ b/core/ajax/share.php
@@ -31,6 +31,7 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo
try {
$shareType = (int)$_POST['shareType'];
$shareWith = $_POST['shareWith'];
+ $itemSourceName = isset($_POST['itemSourceName']) ? $_POST['itemSourceName'] : null;
if ($shareType === OCP\Share::SHARE_TYPE_LINK && $shareWith == '') {
$shareWith = null;
}
@@ -41,7 +42,7 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo
$shareType,
$shareWith,
$_POST['permissions'],
- $_POST['itemSourceName'],
+ $itemSourceName,
(!empty($_POST['expirationDate']) ? new \DateTime($_POST['expirationDate']) : null)
);