commit 707e050: [Minor] Fix style parsing

Vsevolod Stakhov vsevolod at highsecure.ru
Mon Jul 19 14:14:04 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-07-19 15:10:34 +0100
URL: https://github.com/rspamd/rspamd/commit/707e0507af6904e2b8eb5a44b75feccc5e72e497 (HEAD -> master)

[Minor] Fix style parsing

---
 src/libserver/html/html.cxx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/libserver/html/html.cxx b/src/libserver/html/html.cxx
index 73e6e62ff..9b3a8a3ee 100644
--- a/src/libserver/html/html.cxx
+++ b/src/libserver/html/html.cxx
@@ -1774,8 +1774,8 @@ html_process_input(rspamd_mempool_t *pool,
 
 					if (opening_tag && opening_tag->content_offset < opening_tag->closing.start) {
 						auto ret_maybe = rspamd::css::parse_css(pool,
-								{start + cur_tag->content_offset,
-								 cur_tag->closing.start - cur_tag->content_offset},
+								{start + opening_tag->content_offset,
+								 opening_tag->closing.start - opening_tag->content_offset},
 								std::move(hc->css_style));
 
 						if (!ret_maybe.has_value()) {


More information about the Commits mailing list