mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-01-12 12:20:11 +01:00
fixed a bug with messages without encoding
This commit is contained in:
parent
6a522be88e
commit
5ecd4b7299
@ -223,7 +223,7 @@ class ModelSearchMessage extends Model {
|
|||||||
$chunk = base64_decode($chunk);
|
$chunk = base64_decode($chunk);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!preg_match("/utf-8/i", $charset)){
|
if($charset && !preg_match("/utf-8/i", $charset)){
|
||||||
$chunk = iconv($charset, 'utf-8', $chunk);
|
$chunk = iconv($charset, 'utf-8', $chunk);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user