[Pkg-owncloud-commits] [owncloud] 56/70: in case $_POST['itemSourceName'] does not exist we simply default it to null
David Prévot
taffit at moszumanska.debian.org
Thu Aug 21 17:40:10 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v6.0.5RC1
in repository owncloud.
commit 274de5af86dc229821efd1170b7b2db334eb0386
Author: Thomas Müller <thomas.mueller at tmit.eu>
Date: Mon Aug 11 17:56:36 2014 +0200
in case $_POST['itemSourceName'] does not exist we simply default it to null
---
core/ajax/share.php | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/core/ajax/share.php b/core/ajax/share.php
index a7fecf3..1ec4a4f 100644
--- a/core/ajax/share.php
+++ b/core/ajax/share.php
@@ -32,6 +32,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;
}
@@ -42,7 +43,7 @@ if (isset($_POST['action']) && isset($_POST['itemType']) && isset($_POST['itemSo
$shareType,
$shareWith,
$_POST['permissions'],
- $_POST['itemSourceName']
+ $itemSourceName
);
if (is_string($token)) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list