]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix parsing of the html tags with no spaces after attributes
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 2 Mar 2020 12:41:11 +0000 (12:41 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 2 Mar 2020 12:41:11 +0000 (12:41 +0000)
src/libserver/html.c

index df1773f7170b29b36c973d35fb96cdfae74738b7..78c69406cee511ef6a86edbf8b8dd4235fadb538 100644 (file)
@@ -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: