]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Fix height attribute parsing.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 23 Jul 2015 16:01:00 +0000 (17:01 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 23 Jul 2015 16:01:00 +0000 (17:01 +0100)
src/libserver/html.c

index 2ee8ac1cd3b08ec878fd41f4860b912b6975c219..4cffb227b7b311d169611c0f201a0335364ca0d9 100644 (file)
@@ -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;