From 55e75079dfb21156fc5e00c85a2c2f6d4fcc5ba9 Mon Sep 17 00:00:00 2001 From: Gabor Gyorvari Date: Tue, 2 Jun 2026 06:46:11 +0200 Subject: [PATCH] Little return value fix --- scan.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)) {