commit b6be849: [Minor] Enable css parser by default
Vsevolod Stakhov
vsevolod at highsecure.ru
Mon Jul 19 13:21:05 UTC 2021
Author: Vsevolod Stakhov
Date: 2021-07-19 12:15:52 +0100
URL: https://github.com/rspamd/rspamd/commit/b6be849d7df98c48032921032d7138b55bbef077
[Minor] Enable css parser by default
---
src/libmime/message.c | 2 +-
src/libserver/cfg_utils.c | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/libmime/message.c b/src/libmime/message.c
index 9421e225b..9ec00d74c 100644
--- a/src/libmime/message.c
+++ b/src/libmime/message.c
@@ -770,7 +770,7 @@ rspamd_message_process_html_text_part (struct rspamd_task *task,
&text_part->exceptions,
MESSAGE_FIELD (task, urls),
text_part->mime_part->urls,
- task->cfg ? task->cfg->enable_css_parser : false);
+ task->cfg ? task->cfg->enable_css_parser : true);
rspamd_html_get_parsed_content(text_part->html, &text_part->utf_content);
if (text_part->utf_content.len == 0) {
diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c
index d71a3956e..8344ecc72 100644
--- a/src/libserver/cfg_utils.c
+++ b/src/libserver/cfg_utils.c
@@ -278,6 +278,8 @@ rspamd_config_new (enum rspamd_config_init_flags flags)
cfg->c_modules = g_ptr_array_new ();
cfg->heartbeat_interval = 10.0;
+ cfg->enable_css_parser = true;
+
REF_INIT_RETAIN (cfg, rspamd_config_free);
return cfg;
More information about the Commits
mailing list