]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Decode entitles in href parts
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 3 Aug 2016 13:12:23 +0000 (14:12 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 3 Aug 2016 13:33:33 +0000 (14:33 +0100)
src/libserver/html.c

index 1188515c59c66aa79e3ef45bf6faf6e6a59f3837..57a0dfa88b9175205607d4b8579d162c75c6786a 100644 (file)
@@ -1074,6 +1074,8 @@ rspamd_html_parse_tag_content (rspamd_mempool_t *pool,
                                g_assert (comp != NULL);
                                comp->len = in - *savep;
                                comp->start = *savep;
+                               comp->len = rspamd_html_decode_entitles_inplace ((gchar *)*savep,
+                                               comp->len);
                                *savep = NULL;
                        }
                }
@@ -1091,6 +1093,8 @@ rspamd_html_parse_tag_content (rspamd_mempool_t *pool,
                                g_assert (comp != NULL);
                                comp->len = in - *savep;
                                comp->start = *savep;
+                               comp->len = rspamd_html_decode_entitles_inplace ((gchar *)*savep,
+                                               comp->len);
                                *savep = NULL;
                        }
                }
@@ -1111,6 +1115,8 @@ rspamd_html_parse_tag_content (rspamd_mempool_t *pool,
                                g_assert (comp != NULL);
                                comp->len = in - *savep;
                                comp->start = *savep;
+                               comp->len = rspamd_html_decode_entitles_inplace ((gchar *)*savep,
+                                               comp->len);
                                *savep = NULL;
                        }
                }