diff --git a/lib/Cron/Crawler.php b/lib/Cron/Crawler.php index 8084a992..43ad958a 100644 --- a/lib/Cron/Crawler.php +++ b/lib/Cron/Crawler.php @@ -178,7 +178,7 @@ protected function loadFeed() { // Check if the signature actually matches the downloaded content $certificate = openssl_get_publickey(file_get_contents(__DIR__ . '/../../appinfo/certificate.crt')); - $verified = (bool)openssl_verify($feedBody, base64_decode($signature), $certificate, OPENSSL_ALGO_SHA512); + $verified = openssl_verify($feedBody, base64_decode($signature), $certificate, OPENSSL_ALGO_SHA512) === 1; // PHP 8 automatically frees the key instance and deprecates the function if (PHP_VERSION_ID < 80000) {