diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-07-03 19:51:05 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-07-03 19:51:05 +0400 |
commit | 2f59f5a86e830856eb9472eb508c93546e05f21c (patch) | |
tree | 14a9618a68e0559b0d80a6b2fc077016434aa89d /src/html.c | |
parent | 962dd6bf92478665f0eea405fbc02543d17bd944 (diff) | |
download | rspamd-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.c | 4 |
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)); |