]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix style parsing
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 19 Jul 2021 14:10:34 +0000 (15:10 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 19 Jul 2021 14:10:34 +0000 (15:10 +0100)
src/libserver/html/html.cxx

index 73e6e62ff178d665b99cede6bd984353cef7d051..9b3a8a3eebb381da0d571cb182179ee2de2fb6f6 100644 (file)
@@ -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()) {