aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/html.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-11-11 13:01:16 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-11-11 13:01:46 +0000
commit78938e41c02ad901ecc97ed6040008d3c368924b (patch)
tree1c4b0ca0c5c09c0541e2505807c292de7da7ed36 /src/libserver/html.c
parent28973735682581bcb5c0825df562edcaa6641923 (diff)
downloadrspamd-78938e41c02ad901ecc97ed6040008d3c368924b.tar.gz
rspamd-78938e41c02ad901ecc97ed6040008d3c368924b.zip
Decode URL obtained from HTML tags.
Diffstat (limited to 'src/libserver/html.c')
-rw-r--r--src/libserver/html.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libserver/html.c b/src/libserver/html.c
index 539ff555d..fdb6a11db 100644
--- a/src/libserver/html.c
+++ b/src/libserver/html.c
@@ -867,6 +867,7 @@ parse_tag_url (struct rspamd_task *task,
url_text = rspamd_mempool_alloc (task->task_pool, len + 1);
rspamd_strlcpy (url_text, c, len + 1);
+ rspamd_url_unescape (url_text);
decode_entitles (url_text, NULL);
if (g_ascii_strncasecmp (url_text, "http://",