From 4e02182eae130381022b824c80abb797d9d2dbe9 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 6 Aug 2021 13:35:50 +0100 Subject: [PATCH] [Minor] Improve readability Suggested by: @citrin --- src/libserver/html/html_url.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libserver/html/html_url.cxx b/src/libserver/html/html_url.cxx index 0c00d8048..a7f313a2c 100644 --- a/src/libserver/html/html_url.cxx +++ b/src/libserver/html/html_url.cxx @@ -161,6 +161,7 @@ html_url_is_phished(rspamd_mempool_t *pool, if (rc == URI_ERRNO_OK) { text_url->flags |= RSPAMD_URL_FLAG_HTML_DISPLAYED; + href_url->flags |= RSPAMD_URL_FLAG_DISPLAY_URL; /* Check for phishing */ if (is_transfer_proto(text_url) == is_transfer_proto(href_url)) { @@ -251,7 +252,7 @@ html_check_displayed_url(rspamd_mempool_t *pool, {url->visible_part, dlen}); if (maybe_url) { - url->flags |= saved_flags | RSPAMD_URL_FLAG_DISPLAY_URL; + url->flags |= saved_flags; displayed_url = maybe_url.value(); } -- 2.39.5