[Pkg-owncloud-commits] [owncloud] 31/86: Make sure the share we found is for the same item

David Prévot taffit at moszumanska.debian.org
Tue Dec 22 16:51:56 UTC 2015


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

taffit pushed a commit to annotated tag v8.1.5
in repository owncloud.

commit 88bba3ad1598f367d42c4349479af123a4b9f7ae
Author: Joas Schilling <nickvergessen at owncloud.com>
Date:   Fri Oct 2 13:07:20 2015 +0200

    Make sure the share we found is for the same item
---
 lib/private/share/share.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/private/share/share.php b/lib/private/share/share.php
index 9b417e7..a6079c7 100644
--- a/lib/private/share/share.php
+++ b/lib/private/share/share.php
@@ -2024,7 +2024,7 @@ class Share extends Constants {
 
 			$userShareType = ($isGroupShare) ? self::$shareTypeGroupUserUnique : $shareType;
 
-			if ($sourceExists) {
+			if ($sourceExists && $sourceExists['item_source'] === $itemSource) {
 				$fileTarget = $sourceExists['file_target'];
 				$itemTarget = $sourceExists['item_target'];
 

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