mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-12 23:47:02 +02:00
fixed a bug with messages without encoding
This commit is contained in:
@ -223,7 +223,7 @@ class ModelSearchMessage extends Model {
|
||||
$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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user