mirror of
https://bitbucket.org/jsuto/piler.git
synced 2026-10-01 13:40:20 +02:00
fixed a bug with messages without encoding
This commit is contained in:
1 parent
6a522be88e
commit
5ecd4b7299
1 file changed
+1
-1
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user