From: Vsevolod Stakhov Date: Wed, 3 Aug 2016 13:12:23 +0000 (+0100) Subject: [Fix] Decode entitles in href parts X-Git-Tag: 1.3.2~59 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=14f637a270a347fa4937a37a37c3d3fe83c9f395;p=rspamd.git [Fix] Decode entitles in href parts --- diff --git a/src/libserver/html.c b/src/libserver/html.c index 1188515c5..57a0dfa88 100644 --- a/src/libserver/html.c +++ b/src/libserver/html.c @@ -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; } }