]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Do not stop on illegal unicode points - replace them
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 20 May 2017 08:58:10 +0000 (09:58 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 20 May 2017 11:20:24 +0000 (12:20 +0100)
src/libmime/mime_encoding.c

index 97eede7261cd812d6f446af570c37e96241b1ba5..f7541b5197e581ea812de17b983aa33b2cb12173 100644 (file)
@@ -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);