Skip to content

Commit

Permalink
Merge pull request #128 from ranjit-git/master
Browse files Browse the repository at this point in the history
Update core.php
  • Loading branch information
geek-at committed Jun 18, 2021
2 parents 520099b + 70c06cf commit 199f162
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/core.php
Expand Up @@ -433,7 +433,7 @@ function sha1Exists($sha1)
$handle = fopen(ROOT.DS.'data'.DS.'sha1.csv', "r");
if ($handle) {
while (($line = fgets($handle)) !== false) {
if(substr($line,0,40)==$sha1) return trim(substr($line,41));
if(substr($line,0,40)===$sha1) return trim(substr($line,41));
}

fclose($handle);
Expand Down Expand Up @@ -703,4 +703,4 @@ function executeUploadPermission()
http_response_code(403);
exit(json_encode(array('status'=>'err','reason'=> 'Access denied')));
}
}
}

0 comments on commit 199f162

Please sign in to comment.