From: Vsevolod Stakhov Date: Fri, 3 Jul 2009 15:51:05 +0000 (+0400) Subject: * If tag attribute value empty do not assume it as url X-Git-Tag: 0.2.7~99 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2f59f5a86e830856eb9472eb508c93546e05f21c;p=thirdparty%2Frspamd.git * If tag attribute value empty do not assume it as url --- diff --git a/src/html.c b/src/html.c index 4fa81be0b3..337bbff4e0 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));