[Commits] [SCM] claws branch, master, updated. 3.18.0-64-g191cf028a

wwp at claws-mail.org wwp at claws-mail.org
Thu Sep 2 17:22:05 UTC 2021


The branch, master has been updated
       via  191cf028a882157f2b9a78b5a639fdf38e91d321 (commit)
      from  205a320fd295a8f8724baa50e49211807747725a (commit)

Summary of changes:
 src/uri_opener.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)


- Log -----------------------------------------------------------------
commit 191cf028a882157f2b9a78b5a639fdf38e91d321
Author: wwp <subscript at free.fr>
Date:   Thu Sep 2 19:21:43 2021 +0200

    URL dialog: fix phishing attempt condition detection.

diff --git a/src/uri_opener.c b/src/uri_opener.c
index b50321acc..d3c3584a2 100644
--- 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);

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list