From 53401eebfbaa6ba7d45c5ce714342600e4e957e6 Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Thu, 29 Jul 2021 21:04:46 +0200 Subject: [PATCH] integrity check should allow utf8_* charachter sets and not only 'utf8', thx to lod Signed-off-by: Michael Kaufmann --- lib/Froxlor/Database/IntegrityCheck.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Froxlor/Database/IntegrityCheck.php b/lib/Froxlor/Database/IntegrityCheck.php index e2f32e68..7d5334fd 100644 --- a/lib/Froxlor/Database/IntegrityCheck.php +++ b/lib/Froxlor/Database/IntegrityCheck.php @@ -90,7 +90,7 @@ class IntegrityCheck 'dbname' => Database::getDbName() )); $charset = isset($resp['default_character_set_name']) ? $resp['default_character_set_name'] : null; - if (! empty($charset) && strtolower($charset) != 'utf8') { + if (! empty($charset) && substr(strtolower($charset), 0, 4) != 'utf8') { $this->log->logAction(\Froxlor\FroxlorLogger::ADM_ACTION, LOG_NOTICE, "database charset seems to be different from UTF-8, integrity-check can fix that"); if ($fix) { // fix database