]> 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)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 5 Oct 2017 18:10:55 +0000 (19:10 +0100)
MFH: rspamd-1.6

src/libserver/html.c

index 9056157948666fa6d09ce5fc6f222d91ec59c41c..d22c280b4f74bf1b4a09d638d3d63bcf8bd4d0b2 100644 (file)
@@ -740,8 +740,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 */
                                                        }
                                                }
                                        }