mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 12:32:14 +09:00
Fix #2068 type error in utf8_clean()
This commit is contained in:
parent
651238916b
commit
ca35eda1da
1 changed files with 1 additions and 0 deletions
|
|
@ -623,6 +623,7 @@ function utf8_check($str)
|
||||||
function utf8_clean($str)
|
function utf8_clean($str)
|
||||||
{
|
{
|
||||||
// Check if the input is a valid UTF-8 string.
|
// Check if the input is a valid UTF-8 string.
|
||||||
|
$str = (string)$str;
|
||||||
if (!utf8_check($str))
|
if (!utf8_check($str))
|
||||||
{
|
{
|
||||||
$str = @iconv('UTF-8', 'UTF-8//IGNORE', $str);
|
$str = @iconv('UTF-8', 'UTF-8//IGNORE', $str);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue