From: Vsevolod Stakhov Date: Thu, 5 Oct 2017 18:10:55 +0000 (+0100) Subject: [Fix] Erase unknown HTML entities X-Git-Tag: 1.6.5~3^2~12 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d903f1d46bf521ca90641998b2c143085fa41895;p=rspamd.git [Fix] Erase unknown HTML entities MFH: rspamd-1.6 --- 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 */ } } }