Skip to content
This repository was archived by the owner on Jul 24, 2018. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/file.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function checkPassword($password){
$shareId = $this->sharing['id'];
if (!$this->isPasswordProtected()
|| (\OC::$server->getSession()->exists('public_link_authenticated')
&& \OC::$server->getSession()->get('public_link_authenticated') === $shareId
&& \OC::$server->getSession()->get('public_link_authenticated') === (string)$shareId
)
){
return true;
Expand All @@ -118,7 +118,7 @@ public function checkPassword($password){
// Check Password
$newHash = '';
if(\OC::$server->getHasher()->verify($password, $this->getPassword(), $newHash)) {
\OC::$server->getSession()->set('public_link_authenticated', $shareId);
\OC::$server->getSession()->set('public_link_authenticated', (string)$shareId);

/**
* FIXME: Migrate old hashes to new hash format
Expand Down