From ca35eda1da0214d82fa8f21d5991f5e784dc14c0 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Tue, 17 Jan 2023 21:04:33 +0900 Subject: [PATCH] Fix #2068 type error in utf8_clean() --- common/functions.php | 1 + 1 file changed, 1 insertion(+) diff --git a/common/functions.php b/common/functions.php index 60b8bef90..7aa79e052 100644 --- a/common/functions.php +++ b/common/functions.php @@ -623,6 +623,7 @@ function utf8_check($str) function utf8_clean($str) { // Check if the input is a valid UTF-8 string. + $str = (string)$str; if (!utf8_check($str)) { $str = @iconv('UTF-8', 'UTF-8//IGNORE', $str);