From d903f1d46bf521ca90641998b2c143085fa41895 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 5 Oct 2017 19:10:55 +0100 Subject: [PATCH] [Fix] Erase unknown HTML entities MFH: rspamd-1.6 --- src/libserver/html.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libserver/html.c b/src/libserver/html.c index 3baab8b03..1266a5ae4 100644 --- a/src/libserver/html.c +++ b/src/libserver/html.c @@ -745,8 +745,7 @@ rspamd_html_decode_entitles_inplace (gchar *s, guint len) t += g_unichar_to_utf8 (val, t); } else { - memmove (t, e, h - e); - t += h - e; + /* Remove unknown entities */ } } } -- 2.39.5