A free open source IT asset/license management system
Fixed: #11871 Replacing (deprecated) patchwork/utf8 by polyfill/mbstring.
Katharina Drexel4f5d536e3215
diff --git a/app/Models/CustomField.php b/app/Models/CustomField.phpindex 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, '_');}