]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix comments parsing
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 5 May 2021 14:01:47 +0000 (15:01 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 5 May 2021 14:01:47 +0000 (15:01 +0100)
src/libserver/css/css_tokeniser.cxx

index d836f420a211a5e20b0173f310af8ded5a79315b..bc77fc7e3ed97819c59c2dad611d9bf95b156e52 100644 (file)
@@ -597,6 +597,8 @@ auto css_tokeniser::next_token(void) -> struct css_parser_token
                                else if (next_c == '-') {
                                        if (i + 2 < input.size() && input[i + 2] == '>') {
                                                /* XML like comment */
+                                               offset += 3;
+
                                                return make_token<css_parser_token::token_type::cdc_token>();
                                        }
                                }