Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Merge branch 'release'
Browse files Browse the repository at this point in the history
  • Loading branch information
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Adapter/Digest.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,11 @@ public function authenticate()
'messages' => array()
);

while ($line = trim(fgets($fileHandle))) {
while (($line = fgets($fileHandle)) !== false) {
$line = trim($line);
if (empty($line)) {
break;
}
if (substr($line, 0, $idLength) === $id) {
if ($this->_secureStringCompare(substr($line, -32), md5("$this->username:$this->realm:$this->password"))) {
$result['code'] = AuthenticationResult::SUCCESS;
Expand Down

0 comments on commit 1589b26

Please sign in to comment.