diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-06-17 16:47:49 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-06-17 16:47:49 +0100 |
commit | 87366012b2a80090faa69b17b83f90da9f36f93b (patch) | |
tree | 6a53a5dc344bcd4bec9906234a9fd990f7c0d788 /src/libserver/css | |
parent | fa04109d087b2cd31bcd3087fddbd72b3fd87bd8 (diff) | |
download | rspamd-87366012b2a80090faa69b17b83f90da9f36f93b.tar.gz rspamd-87366012b2a80090faa69b17b83f90da9f36f93b.zip |
[Minor] Fix stupid misprints
Diffstat (limited to 'src/libserver/css')
-rw-r--r-- | src/libserver/css/css.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/libserver/css/css.cxx b/src/libserver/css/css.cxx index 55d778244..51f537b5a 100644 --- a/src/libserver/css/css.cxx +++ b/src/libserver/css/css.cxx @@ -146,9 +146,6 @@ css_style_sheet::check_tag_block(const rspamd::html::html_tag *tag) -> } if (last == std::string_view::npos) { - if (start < strv.size()) { - ret.emplace_back(strv.substr(start)); - } break; } @@ -164,7 +161,7 @@ css_style_sheet::check_tag_block(const rspamd::html::html_tag *tag) -> auto found_class_sel = pimpl->class_selectors.find( css_selector{e, css_selector::selector_type::SELECTOR_CLASS}); - if (found_class_sel != pimpl->id_selectors.end()) { + if (found_class_sel != pimpl->class_selectors.end()) { const auto &decl = *(found_class_sel->second); auto *tmp = decl.compile_to_block(pool); @@ -180,10 +177,10 @@ css_style_sheet::check_tag_block(const rspamd::html::html_tag *tag) -> /* Tags part */ if (!pimpl->tags_selector.empty()) { - auto found_tag_sel = pimpl->class_selectors.find( + auto found_tag_sel = pimpl->tags_selector.find( css_selector{static_cast<tag_id_t>(tag->id)}); - if (found_tag_sel != pimpl->id_selectors.end()) { + if (found_tag_sel != pimpl->tags_selector.end()) { const auto &decl = *(found_tag_sel->second); auto *tmp = decl.compile_to_block(pool); |