Skip to content

Commit

Permalink
Merge pull request #28709 from owncloud/verify-link-share-password-ev…
Browse files Browse the repository at this point in the history
…en-if-unchanged

Validate share link password even if unchanged when updating a link s…
  • Loading branch information
phil-davis authored Aug 17, 2017
2 parents f34b288 + 6e22953 commit d047f49
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/private/Share20/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit d047f49

Please sign in to comment.