commit 8736601: [Minor] Fix stupid misprints
Vsevolod Stakhov
vsevolod at highsecure.ru
Thu Jun 17 15:49:04 UTC 2021
Author: Vsevolod Stakhov
Date: 2021-06-17 16:47:49 +0100
URL: https://github.com/rspamd/rspamd/commit/87366012b2a80090faa69b17b83f90da9f36f93b (HEAD -> master)
[Minor] Fix stupid misprints
---
src/libserver/css/css.cxx | 9 +++------
src/libserver/html/html.cxx | 2 +-
2 files changed, 4 insertions(+), 7 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);
diff --git a/src/libserver/html/html.cxx b/src/libserver/html/html.cxx
index b9c1a41cc..bb6d8b725 100644
--- a/src/libserver/html/html.cxx
+++ b/src/libserver/html/html.cxx
@@ -1033,7 +1033,7 @@ html_process_block_tag(rspamd_mempool_t *pool, struct html_tag *tag,
}
if (maybe_bgcolor) {
- tag->block->set_bgcolor(maybe_fgcolor->to_color().value());
+ tag->block->set_bgcolor(maybe_bgcolor->to_color().value());
}
}
More information about the Commits
mailing list