From e23f93a08d6fdb4ab68dc3824b382803dd3de60c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Wed, 16 Aug 2017 14:10:00 +0200 Subject: [PATCH] [stable10] Validate share link password even if unchanged when updating a link share --- lib/private/Share20/Manager.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php index 6a85d787617c..9d6d74d505f7 100644 --- a/lib/private/Share20/Manager.php +++ b/lib/private/Share20/Manager.php @@ -706,9 +706,10 @@ public function updateShare(\OCP\Share\IShare $share) { } } + //Verify the expiration date + $this->validateExpirationDate($share); + if ($share->getExpirationDate() != $originalShare->getExpirationDate()) { - //Verify the expiration date - $this->validateExpirationDate($share); $expirationDateUpdated = true; } }