aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/mime_encoding.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-05-20 09:58:10 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-05-20 09:58:10 +0100
commit86fc1e855b8e8b2850b3fb74d705802ac29dc085 (patch)
treeca937f2926393eeaeb392b03f363d6bf61d95bc9 /src/libmime/mime_encoding.c
parentf252d9ca75387b92efd809da1a899eac627a8ca6 (diff)
downloadrspamd-86fc1e855b8e8b2850b3fb74d705802ac29dc085.tar.gz
rspamd-86fc1e855b8e8b2850b3fb74d705802ac29dc085.zip
[Fix] Do not stop on illegal unicode points - replace them
Diffstat (limited to 'src/libmime/mime_encoding.c')
-rw-r--r--src/libmime/mime_encoding.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libmime/mime_encoding.c b/src/libmime/mime_encoding.c
index 436bcd7a1..ca02cbf2f 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);