aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/html.c
diff options
context:
space:
mode:
authorMiecio Za <miecio@miecio.net>2019-02-27 12:04:10 +0100
committerMiecio Za <miecio@miecio.net>2019-02-27 12:04:10 +0100
commit84264594d874881dd4556dc476d8a3af842787e7 (patch)
treee3a0acfc3a6a9a610d0afccd7c33189f39c388a0 /src/libserver/html.c
parentadd9595913c3f456c6328a53801739cdca70da9d (diff)
downloadrspamd-84264594d874881dd4556dc476d8a3af842787e7.tar.gz
rspamd-84264594d874881dd4556dc476d8a3af842787e7.zip
[Feature] Add flag to url object when visible part is url_like
Flag is similar to phished but does not require domains to be different
Diffstat (limited to 'src/libserver/html.c')
-rw-r--r--src/libserver/html.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libserver/html.c b/src/libserver/html.c
index 70b66ccc0..cdcaf4ebb 100644
--- a/src/libserver/html.c
+++ b/src/libserver/html.c
@@ -2384,6 +2384,9 @@ rspamd_html_check_displayed_url (rspamd_mempool_t *pool,
dest->len - href_offset,
&url_found, &displayed_url);
+ if (url_found) {
+ url->flags |= RSPAMD_URL_FLAG_DISPLAY_URL;
+ }
if (exceptions && url_found) {
ex = rspamd_mempool_alloc (pool,
sizeof (*ex));