[gedit] OpenLink plugin. Secure http by default when no protocol specified



commit da4b7b5282c92f35f0e59d6474e72db4d32b4ca1
Author: Jordi Mas <jmas softcatala org>
Date:   Mon Mar 29 18:07:32 2021 +0200

    OpenLink plugin. Secure http by default when no protocol specified

 plugins/openlinks/gedit-open-links-plugin.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plugins/openlinks/gedit-open-links-plugin.c b/plugins/openlinks/gedit-open-links-plugin.c
index ae8dd5baa..9d7562881 100644
--- a/plugins/openlinks/gedit-open-links-plugin.c
+++ b/plugins/openlinks/gedit-open-links-plugin.c
@@ -129,7 +129,7 @@ gedit_open_links_plugin_get_uri (GtkTextIter *start,
        /* We must prepend the scheme or the gtk URL opening function fails */
        if (g_str_has_prefix ((*uri)->str, "www."))
        {
-               g_string_prepend (*uri, "http://";);
+               g_string_prepend (*uri, "https://";);
        }
        return TRUE;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]