[Pkg-owncloud-commits] [owncloud] 60/107: The ajax code path unshares a link share when updating the password

David Prévot taffit at moszumanska.debian.org
Thu Dec 17 19:40:37 UTC 2015


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

taffit pushed a commit to branch stable8
in repository owncloud.

commit 59c27e0fb4a66ea908789a18189b468a4e8cde67
Author: Roeland Jago Douma <rullzer at owncloud.com>
Date:   Mon Dec 7 16:38:49 2015 +0100

    The ajax code path unshares a link share when updating the password
    
    In order to not mess up existing shares if the password gets verified we
    should first fire this validation.
---
 lib/private/share/share.php | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lib/private/share/share.php b/lib/private/share/share.php
index 95e5e7e..dd42a22 100644
--- a/lib/private/share/share.php
+++ b/lib/private/share/share.php
@@ -764,6 +764,11 @@ class Share extends Constants {
 			$updateExistingShare = false;
 			if (\OC::$server->getAppConfig()->getValue('core', 'shareapi_allow_links', 'yes') == 'yes') {
 
+				// IF the password is changed via the old ajax endpoint verify it before deleting the old share
+				if ($passwordChanged === true) {
+					self::verifyPassword($shareWith);
+				}
+
 				// when updating a link share
 				// FIXME Don't delete link if we update it
 				if ($checkExists = self::getItems($itemType, $itemSource, self::SHARE_TYPE_LINK, 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