From 9ed43072920797625e95ef6783a95736330909a6 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 20 May 2017 09:58:10 +0100 Subject: [PATCH] [Fix] Do not stop on illegal unicode points - replace them --- src/libmime/mime_encoding.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.5