From: Vsevolod Stakhov Date: Fri, 6 Aug 2021 12:35:50 +0000 (+0100) Subject: [Minor] Improve readability X-Git-Tag: 3.0~42 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4e02182eae130381022b824c80abb797d9d2dbe9;p=rspamd.git [Minor] Improve readability Suggested by: @citrin --- 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(); }