]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Replace bad unicode sequences instead of stopping on them
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 26 Jul 2018 16:18:52 +0000 (17:18 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 26 Jul 2018 16:18:52 +0000 (17:18 +0100)
Issue: #2373

src/libmime/mime_encoding.c

index 7a6d4a3cbfc256827c1a13fc5091a6a38ef302c8..c316b264cc61259daa4609b7132643bedc01a0a0 100644 (file)
@@ -82,7 +82,7 @@ rspamd_mime_get_converter_cached (const gchar *enc, UErrorCode *err)
                if (conv != NULL) {
                        ucnv_setToUCallBack (conv,
                                        UCNV_TO_U_CALLBACK_SUBSTITUTE,
-                                       UCNV_SUB_STOP_ON_ILLEGAL,
+                                       NULL,
                                        NULL,
                                        NULL,
                                        err);