[Pkg-owncloud-commits] [owncloud] 50/121: in case $_POST['itemSourceName'] does not exist we simply default it to null

David Prévot taffit at moszumanska.debian.org
Thu Aug 21 16:44:31 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit 1051460afc088f8f154f50f6e238cd361082866e
Author: Thomas Müller <thomas.mueller at tmit.eu>
Date:   Fri Aug 1 09:10:14 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 4b5a6cd..37f374c 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)
 					);
 

-- 
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