talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 91f5bbf35b85f5a39a4d9e65318ca643eef18e2c
parent c7dec0a8709e413161e2a4adf4f923c8654cc00c
Author: wwp <subscript@free.fr>
Date:   Thu,  2 Sep 2021 19:24:03 +0200

URL dialog: fix phishing attempt condition detection.

Diffstat:
Msrc/uri_opener.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/uri_opener.c b/src/uri_opener.c @@ -294,7 +294,7 @@ static void uri_opener_list_view_insert_uri(GtkWidget *list_view, gchar *label = NULL; if (visible && strcmp(visible, uri->uri)) { - gboolean phishing_attempt = TRUE; + gboolean phishing_attempt = FALSE; if (strcmp(visible, uri->uri) != 0 && is_uri_string(visible)) { gchar *uri_path; gchar *visible_uri_path; @@ -302,7 +302,7 @@ static void uri_opener_list_view_insert_uri(GtkWidget *list_view, uri_path = get_uri_path(uri->uri); visible_uri_path = get_uri_path(visible); if (path_cmp(uri_path, visible_uri_path) != 0) - phishing_attempt = FALSE; + phishing_attempt = TRUE; } if (phishing_attempt) { label = g_markup_printf_escaped("<span color=\"%s\"><b>%s</b></span>\n%s",