]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Erase unknown HTML entities
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 5 Oct 2017 18:10:55 +0000 (19:10 +0100)
committerAndrew Lewis <nerf@judo.za.org>
Tue, 17 Oct 2017 22:26:15 +0000 (00:26 +0200)
MFH: rspamd-1.6

src/libserver/html.c

index 3baab8b03d7a10ebf79e67d3b8b25f4a81430d81..1266a5ae41d434513ecd9abce6369e9419216293 100644 (file)
@@ -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 */
                                                        }
                                                }
                                        }