commit d2399eb: [Minor] Fix comments parsing

Vsevolod Stakhov vsevolod at highsecure.ru
Wed May 5 14:07:10 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-05-05 15:01:47 +0100
URL: https://github.com/rspamd/rspamd/commit/d2399ebcc091f8ee2abb1da6d1393b129d2b38b0

[Minor] Fix comments parsing

---
 src/libserver/css/css_tokeniser.cxx | 2 ++
 1 file changed, 2 insertions(+)

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>();
 					}
 				}


More information about the Commits mailing list