commit 4e02182: [Minor] Improve readability
Vsevolod Stakhov
vsevolod at highsecure.ru
Fri Aug 6 12:42:04 UTC 2021
Author: Vsevolod Stakhov
Date: 2021-08-06 13:35:50 +0100
URL: https://github.com/rspamd/rspamd/commit/4e02182eae130381022b824c80abb797d9d2dbe9 (HEAD -> master)
[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();
}
More information about the Commits
mailing list