aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/html.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-17 15:50:34 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-17 15:50:34 +0100
commit88f1e4cce514eccaff2c899d15f5f6abea30e46a (patch)
tree64c767d117229a6d772600180dd6d1e68ef729e0 /src/libserver/html.c
parent7041327261fc00c1ad88e5dc3eb905558bc4b5d5 (diff)
downloadrspamd-88f1e4cce514eccaff2c899d15f5f6abea30e46a.tar.gz
rspamd-88f1e4cce514eccaff2c899d15f5f6abea30e46a.zip
Work with empty href.
Diffstat (limited to 'src/libserver/html.c')
-rw-r--r--src/libserver/html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/html.c b/src/libserver/html.c
index d2f365309..dcb9cf759 100644
--- a/src/libserver/html.c
+++ b/src/libserver/html.c
@@ -1243,7 +1243,7 @@ rspamd_html_process_url_tag (rspamd_mempool_t *pool, struct html_tag *tag)
while (cur) {
comp = cur->data;
- if (comp->type == RSPAMD_HTML_COMPONENT_HREF) {
+ if (comp->type == RSPAMD_HTML_COMPONENT_HREF && comp->len > 0) {
url = rspamd_mempool_alloc (pool, sizeof (*url));
rc = rspamd_url_parse (url, (gchar *)comp->start, comp->len, pool);