aboutsummaryrefslogtreecommitdiffstats
path: root/src/html.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-07-03 19:51:05 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-07-03 19:51:05 +0400
commit2f59f5a86e830856eb9472eb508c93546e05f21c (patch)
tree14a9618a68e0559b0d80a6b2fc077016434aa89d /src/html.c
parent962dd6bf92478665f0eea405fbc02543d17bd944 (diff)
downloadrspamd-2f59f5a86e830856eb9472eb508c93546e05f21c.tar.gz
rspamd-2f59f5a86e830856eb9472eb508c93546e05f21c.zip
* If tag attribute value empty do not assume it as url
Diffstat (limited to 'src/html.c')
-rw-r--r--src/html.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/html.c b/src/html.c
index 4fa81be0b..337bbff4e 100644
--- a/src/html.c
+++ b/src/html.c
@@ -325,6 +325,10 @@ parse_tag_url (struct worker_task *task, struct mime_text_part *part, tag_id_t i
c++;
}
+ if (len == 0) {
+ return;
+ }
+
url_text = memory_pool_alloc (task->task_pool, len + 1);
g_strlcpy (url_text, c, len + 1);
url = memory_pool_alloc (task->task_pool, sizeof (struct uri));