From d32aceb3b3fefc24c13a821c8eca0c4923cdbb48 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 2 Mar 2020 12:41:11 +0000 Subject: [PATCH] [Fix] Fix parsing of the html tags with no spaces after attributes --- src/libserver/html.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libserver/html.c b/src/libserver/html.c index df1773f71..78c69406c 100644 --- a/src/libserver/html.c +++ b/src/libserver/html.c @@ -1302,6 +1302,11 @@ rspamd_html_parse_tag_content (rspamd_mempool_t *pool, else if (*in == '/' && *(in + 1) == '>') { tag->flags |= FL_CLOSED; } + else { + /* No space, proceed immediately to the attribute name */ + state = parse_attr_name; + *savep = in; + } break; case spaces_after_param: -- 2.39.5