summaryrefslogtreecommitdiffstats
path: root/src/libserver/html
diff options
context:
space:
mode:
Diffstat (limited to 'src/libserver/html')
-rw-r--r--src/libserver/html/html.cxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/libserver/html/html.cxx b/src/libserver/html/html.cxx
index 70ccd10b7..715f831d5 100644
--- a/src/libserver/html/html.cxx
+++ b/src/libserver/html/html.cxx
@@ -1236,6 +1236,20 @@ html_append_tag_content(rspamd_mempool_t *pool,
}
}
}
+ else {
+ /* Invisible stuff */
+ if (std::holds_alternative<rspamd_url *>(tag->extra)) {
+ auto *url_enclosed = std::get<rspamd_url *>(tag->extra);
+
+ /*
+ * TODO: when hash is fixed to include flags we need to remove and add
+ * url to the hash set
+ */
+ if (url_enclosed) {
+ url_enclosed->flags |= RSPAMD_URL_FLAG_INVISIBLE;
+ }
+ }
+ }
calculate_final_tag_offsets();