Fix authentication bypass
See https://github.com/fruux/Baikal/issues/673 for more details
This commit is contained in:
parent
5dfcf7ad07
commit
2cbb7deb9d
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ class PDOBasicAuth extends \Sabre\DAV\Auth\Backend\AbstractBasic {
|
|||
if (!count($result)) return false;
|
||||
|
||||
$hash = md5($username . ':' . $this->authRealm . ':' . $password);
|
||||
if ($result[0]['digesta1'] == $hash)
|
||||
if ($result[0]['digesta1'] === $hash)
|
||||
{
|
||||
$this->currentUser = $username;
|
||||
return true;
|
||||
|
|
Loading…
Add table
Reference in a new issue