Merge pull request #128 from ranjit-git/master

Update core.php
This commit is contained in:
Christian Haschek
2021-06-18 07:46:51 +02:00
committed by GitHub

View File

@@ -433,7 +433,7 @@ function sha1Exists($sha1)
$handle = fopen(ROOT.DS.'data'.DS.'sha1.csv', "r"); $handle = fopen(ROOT.DS.'data'.DS.'sha1.csv', "r");
if ($handle) { if ($handle) {
while (($line = fgets($handle)) !== false) { 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); fclose($handle);