[Commits] [SCM] claws branch, gtk3, updated. 3.16.0-966-g00e802e57

paul at claws-mail.org paul at claws-mail.org
Wed Jun 3 15:23:24 CEST 2020


The branch, gtk3 has been updated
       via  00e802e57c96faa3ebf6a8cfca7e4c4a2c680343 (commit)
      from  45616190adbd0ba15afd1abcb567eb37fbb25f3a (commit)

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


- Log -----------------------------------------------------------------
commit 00e802e57c96faa3ebf6a8cfca7e4c4a2c680343
Author: Paul <paul at claws-mail.org>
Date:   Wed Jun 3 14:22:03 2020 +0100

    add Phishing warning when copying url
    
    closes RFE 4348 'display the phishing pop on "copy this libnk"' and ends continual badgering

diff --git a/src/textview.c b/src/textview.c
index 3c4022ab0..90f26b026 100644
--- a/src/textview.c
+++ b/src/textview.c
@@ -2938,16 +2938,16 @@ static void copy_uri_cb	(GtkAction *action, TextView *textview)
 	const gchar *raw_url =  g_object_get_data(G_OBJECT(textview->link_popup_menu),
 					   "raw_url");
 	if (uri) {
-		gtk_clipboard_set_text(gtk_clipboard_get(GDK_SELECTION_PRIMARY), uri->uri, -1);
-		gtk_clipboard_set_text(gtk_clipboard_get(GDK_SELECTION_CLIPBOARD), uri->uri, -1);
-		g_object_set_data(G_OBJECT(textview->link_popup_menu), "menu_button",
-			  NULL);
+		if (textview_uri_security_check(textview, uri) == TRUE) {
+			gtk_clipboard_set_text(gtk_clipboard_get(GDK_SELECTION_PRIMARY), uri->uri, -1);
+			gtk_clipboard_set_text(gtk_clipboard_get(GDK_SELECTION_CLIPBOARD), uri->uri, -1);
+			g_object_set_data(G_OBJECT(textview->link_popup_menu), "menu_button", NULL);
+		}
 	}
 	if (raw_url) {
 		gtk_clipboard_set_text(gtk_clipboard_get(GDK_SELECTION_PRIMARY), raw_url, -1);
 		gtk_clipboard_set_text(gtk_clipboard_get(GDK_SELECTION_CLIPBOARD), raw_url, -1);
-		g_object_set_data(G_OBJECT(textview->link_popup_menu), "raw_url",
-			  NULL);
+		g_object_set_data(G_OBJECT(textview->link_popup_menu), "raw_url", NULL);
 	}
 }
 

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list