Fixed: #11871 Replacing (deprecated) patchwork/utf8 by polyfill/mbstring.

This commit is contained in:
Katharina Drexel 2022-09-28 09:07:10 +02:00
parent 9dbc5070f8
commit 4f5d536e32
No known key found for this signature in database
GPG key ID: 5DE32D31BA76AE6D

View file

@ -338,7 +338,7 @@ class CustomField extends Model
$id = $this->id ? $this->id : 'xx'; $id = $this->id ? $this->id : 'xx';
if (! function_exists('transliterator_transliterate')) { 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 { } else {
$long_slug = '_snipeit_'.Utf8Slugger::slugify($name, '_'); $long_slug = '_snipeit_'.Utf8Slugger::slugify($name, '_');
} }