aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-05-05 15:01:47 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-05-05 15:01:47 +0100
commitd2399ebcc091f8ee2abb1da6d1393b129d2b38b0 (patch)
treed9c532f2a9a8cbae3adad662f8419f2524cb4e4f
parentd23f1ee2f96e00c108a63c9849aabc1608b81e8a (diff)
downloadrspamd-d2399ebcc091f8ee2abb1da6d1393b129d2b38b0.tar.gz
rspamd-d2399ebcc091f8ee2abb1da6d1393b129d2b38b0.zip
[Minor] Fix comments parsing
-rw-r--r--src/libserver/css/css_tokeniser.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libserver/css/css_tokeniser.cxx b/src/libserver/css/css_tokeniser.cxx
index d836f420a..bc77fc7e3 100644
--- a/src/libserver/css/css_tokeniser.cxx
+++ b/src/libserver/css/css_tokeniser.cxx
@@ -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>();
}
}