From 4f5d536e3215805c088f15deeef30dc0322375a3 Mon Sep 17 00:00:00 2001 From: Katharina Drexel Date: Wed, 28 Sep 2022 09:07:10 +0200 Subject: [PATCH] Fixed: #11871 Replacing (deprecated) patchwork/utf8 by polyfill/mbstring. --- app/Models/CustomField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/CustomField.php b/app/Models/CustomField.php index 6027aa3473..0f19ccb446 100644 --- a/app/Models/CustomField.php +++ b/app/Models/CustomField.php @@ -338,7 +338,7 @@ class CustomField extends Model $id = $this->id ? $this->id : 'xx'; if (! function_exists('transliterator_transliterate')) { - $long_slug = '_snipeit_'.str_slug(\Polyfill\Mbstring::mb_convert_encoding(trim($name)), '_'); + $long_slug = '_snipeit_'.str_slug(mb_convert_encoding(trim($name),"UTF-8"), '_'); } else { $long_slug = '_snipeit_'.Utf8Slugger::slugify($name, '_'); }