From: Vsevolod Stakhov Date: Thu, 23 Jul 2015 16:01:00 +0000 (+0100) Subject: Fix height attribute parsing. X-Git-Tag: 1.0.0~298 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=09b84d4eabd808c638b48de06d0305480947fb2e;p=thirdparty%2Frspamd.git Fix height attribute parsing. --- diff --git a/src/libserver/html.c b/src/libserver/html.c index 2ee8ac1cd3..4cffb227b7 100644 --- a/src/libserver/html.c +++ b/src/libserver/html.c @@ -992,7 +992,7 @@ rspamd_html_parse_tag_component (rspamd_mempool_t *pool, tag->params = g_list_prepend (tag->params, comp); ret = TRUE; } - else if (len == 5 && g_ascii_strncasecmp (begin, "height", len) == 0) { + else if (len == 6 && g_ascii_strncasecmp (begin, "height", len) == 0) { comp = rspamd_mempool_alloc (pool, sizeof (*comp)); comp->type = RSPAMD_HTML_COMPONENT_HEIGHT; comp->start = NULL;