diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-08-03 14:12:23 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-08-03 14:33:33 +0100 |
commit | 14f637a270a347fa4937a37a37c3d3fe83c9f395 (patch) | |
tree | 7176a082aa37fbe85cb063243036739a0db5ef9a /src/libserver/html.c | |
parent | b8ae34fec7e9c0150cc1df6fe7377178b4253efc (diff) | |
download | rspamd-14f637a270a347fa4937a37a37c3d3fe83c9f395.tar.gz rspamd-14f637a270a347fa4937a37a37c3d3fe83c9f395.zip |
[Fix] Decode entitles in href parts
Diffstat (limited to 'src/libserver/html.c')
-rw-r--r-- | src/libserver/html.c | 6 |
1 files changed, 6 insertions, 0 deletions
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; } } |