commit 22b8520: [Minor] Fix no tags case
Vsevolod Stakhov
vsevolod at highsecure.ru
Fri Jul 23 09:49:04 UTC 2021
Author: Vsevolod Stakhov
Date: 2021-07-23 10:47:37 +0100
URL: https://github.com/rspamd/rspamd/commit/22b852043d054e18660c2478cf677a14d114309c (HEAD -> master)
[Minor] Fix no tags case
---
src/libserver/html/html.cxx | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/src/libserver/html/html.cxx b/src/libserver/html/html.cxx
index 6cf3b959d..0cf950531 100644
--- a/src/libserver/html/html.cxx
+++ b/src/libserver/html/html.cxx
@@ -1918,10 +1918,7 @@ html_process_input(rspamd_mempool_t *pool,
break;
}
- if (!hc->all_tags.empty()) {
- std::sort(hc->all_tags.begin(), hc->all_tags.end(), [](const auto &pt1, const auto &pt2) -> auto {
- return pt1->tag_start < pt2->tag_start;
- });
+ if (!hc->all_tags.empty() && hc->root_tag) {
html_append_tag_content(pool, start, end - start, hc, hc->root_tag,
exceptions, url_set);
}
More information about the Commits
mailing list