aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-07-19 10:31:36 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-07-19 10:31:36 +0100
commite215f89e7cbbbeaeb5d0ed7bbd0631ea3a6a6d70 (patch)
tree522452f3de89ec8dfe9057428850abf7b294e4aa /src/libmime
parentdde092ef09cddfae6bd1d70977d5208bb88d2d7f (diff)
downloadrspamd-e215f89e7cbbbeaeb5d0ed7bbd0631ea3a6a6d70.tar.gz
rspamd-e215f89e7cbbbeaeb5d0ed7bbd0631ea3a6a6d70.zip
[Minor] Try to fix has_fake_html rule
Diffstat (limited to 'src/libmime')
-rw-r--r--src/libmime/mime_expressions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmime/mime_expressions.c b/src/libmime/mime_expressions.c
index 477b1dc5d..06b590f51 100644
--- a/src/libmime/mime_expressions.c
+++ b/src/libmime/mime_expressions.c
@@ -1609,7 +1609,7 @@ rspamd_has_fake_html (struct rspamd_task * task, GArray * args, void *unused)
gboolean res = FALSE;
PTR_ARRAY_FOREACH (MESSAGE_FIELD (task, text_parts), i, p) {
- if (IS_TEXT_PART_HTML (p) && (p->html == NULL)) {
+ if (IS_TEXT_PART_HTML (p) && (rspamd_html_get_tags_count(p->html) < 2)) {
res = TRUE;
}