]> 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 08:58:10 +0000 (09:58 +0100)
src/libmime/mime_encoding.c

index 436bcd7a167a322e28dfac954c0ab1fa244119f5..ca02cbf2f4978de353106c5e528692d09086750a 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);