commit af7a086: [Minor] Temporary workaround (should be fixed properly at some point)

Vsevolod Stakhov vsevolod at highsecure.ru
Wed Jan 20 15:00:29 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-01-20 14:58:05 +0000
URL: https://github.com/rspamd/rspamd/commit/af7a086a06ba8339b0fa870c933586b294783bb0 (HEAD -> master)

[Minor] Temporary workaround (should be fixed properly at some point)

---
 src/libserver/html.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/libserver/html.c b/src/libserver/html.c
index d907995ac..0dd6eb5cd 100644
--- a/src/libserver/html.c
+++ b/src/libserver/html.c
@@ -3200,7 +3200,8 @@ rspamd_html_process_part_full (rspamd_mempool_t *pool,
 					save_space = FALSE;
 				}
 
-				if (cur_tag->flags & FL_HREF && !(cur_tag->flags & FL_IGNORE)) {
+				/* XXX: uncomment when styles parsing is not so broken */
+				if (cur_tag->flags & FL_HREF /* && !(cur_tag->flags & FL_IGNORE) */) {
 					if (!(cur_tag->flags & (FL_CLOSING))) {
 						url = rspamd_html_process_url_tag (pool, cur_tag, hc);
 


More information about the Commits mailing list