From 616c2c46d1abd55f447ffd80ed711d6eae7d2615 Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Tue, 21 Jan 2025 17:38:27 +0300 Subject: [PATCH] Fixing names_hash_changed(..) so that it writes hex summ instead of binary one --- helpers.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers.inc.php b/helpers.inc.php index e3f0a37..c0af76d 100644 --- a/helpers.inc.php +++ b/helpers.inc.php @@ -1200,7 +1200,7 @@ function names_hash_changed(string $crc_file, array $names) : bool $ctx = hash_init('crc32'); foreach($names as $name) hash_update($ctx, $name); - $names_crc = hash_final($ctx, true); + $names_crc = hash_final($ctx, false); $changed = !file_exists($crc_file) || ensure_read($crc_file) != $names_crc; ensure_write($crc_file, $names_crc); return $changed;