commit 191cf028a882157f2b9a78b5a639fdf38e91d321
parent 205a320fd295a8f8724baa50e49211807747725a
Author: wwp <subscript@free.fr>
Date: Thu, 2 Sep 2021 19:21:43 +0200
URL dialog: fix phishing attempt condition detection.
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/uri_opener.c b/src/uri_opener.c
@@ -295,7 +295,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;
@@ -303,13 +303,13 @@ 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) {
GdkColor color;
gchar buf[8];
- g_snprintf(buf, sizeof buf, "#%6.6lx", prefs_common.color[COL_LOG_ERROR]);
+ g_snprintf(buf, sizeof buf, "#%6.6lx", prefs_common.color[COL_LOG_ERROR]);
gtkut_convert_int_to_gdk_color(prefs_common.color[COL_LOG_ERROR], &color);
label = g_markup_printf_escaped("<span color=\"%s\"><b>%s</b></span>\n%s",
buf, visible, uri->uri);