From: Vsevolod Stakhov Date: Mon, 2 Mar 2020 12:41:11 +0000 (+0000) Subject: [Fix] Fix parsing of the html tags with no spaces after attributes X-Git-Tag: 2.5~103 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d32aceb3b3fefc24c13a821c8eca0c4923cdbb48;p=thirdparty%2Frspamd.git [Fix] Fix parsing of the html tags with no spaces after attributes --- diff --git a/src/libserver/html.c b/src/libserver/html.c index df1773f717..78c69406ce 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: