From: Vsevolod Stakhov Date: Sat, 20 May 2017 08:58:10 +0000 (+0100) Subject: [Fix] Do not stop on illegal unicode points - replace them X-Git-Tag: 1.5.8~16 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9ed43072920797625e95ef6783a95736330909a6;p=rspamd.git [Fix] Do not stop on illegal unicode points - replace them --- diff --git a/src/libmime/mime_encoding.c b/src/libmime/mime_encoding.c index 97eede726..f7541b519 100644 --- a/src/libmime/mime_encoding.c +++ b/src/libmime/mime_encoding.c @@ -201,7 +201,7 @@ rspamd_mime_text_to_utf8 (rspamd_mempool_t *pool, ucnv_setFromUCallBack (utf8_converter, UCNV_FROM_U_CALLBACK_SUBSTITUTE, - UCNV_SUB_STOP_ON_ILLEGAL, + NULL, NULL, NULL, &uc_err); @@ -289,7 +289,7 @@ rspamd_mime_to_utf8_byte_array (GByteArray *in, ucnv_setFromUCallBack (utf8_converter, UCNV_FROM_U_CALLBACK_SUBSTITUTE, - UCNV_SUB_STOP_ON_ILLEGAL, + NULL, NULL, NULL, &uc_err);