diff --git a/scan.php b/scan.php index a1e4074..78e3259 100644 --- a/scan.php +++ b/scan.php @@ -820,11 +820,12 @@ class MalwareScanner { $ctx = stream_context_create(array('http' => array('timeout' => 30))); - $latest_hash = trim(file_get_contents($url . '/database/compressed.sha256', false, $ctx)); + $latest_hash = file_get_contents($url . '/database/compressed.sha256', false, $ctx); if ($latest_hash === false) { $this->error('Unable to download database checksum'); return false; } + $latest_hash = trim($latest_hash); $file = __DIR__ . '/whitelist.dat'; if (is_readable($file)) {