]> www.fi.muni.cz Git - evince.git/commitdiff
Do not consider mailto links as http uris. Fixes bug #555801.
authorCarlos Garcia Campos <carlosgc@gnome.org>
Sun, 12 Oct 2008 12:06:24 +0000 (12:06 +0000)
committerCarlos Garcia Campos <carlosgc@src.gnome.org>
Sun, 12 Oct 2008 12:06:24 +0000 (12:06 +0000)
2008-10-12  Carlos Garcia Campos  <carlosgc@gnome.org>

* shell/ev-window.c: (launch_external_uri):

Do not consider mailto links as http uris. Fixes bug #555801.

svn path=/trunk/; revision=3218

ChangeLog
shell/ev-window.c

index 1ecf9c9423837eac66135071ba982a40815f71e0..22c3c5a56a214ee8c2cc7b6a1bc93d4e91f678c6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-10-12  Carlos Garcia Campos  <carlosgc@gnome.org>
+
+       * shell/ev-window.c: (launch_external_uri):
+
+       Do not consider mailto links as http uris. Fixes bug #555801.
+       
 2008-10-06  Carlos Garcia Campos  <carlosgc@gnome.org>
 
        * shell/ev-view.c: (merge_selection_region), (clear_selection):
index 44a68c66f4d68b7067905b81d97684a470362658..0b2fd182b52f1ebb9afd8f1d82dc1ab9947f558d 100644 (file)
@@ -4902,7 +4902,8 @@ launch_external_uri (EvWindow *window, EvLinkAction *action)
                                              GDK_CURRENT_TIME);
 #endif
 
-       if (!g_strstr_len (uri, strlen (uri), "://")) {
+       if (!g_strstr_len (uri, strlen (uri), "://") &&
+           !g_str_has_prefix (uri, "mailto:")) {
                gchar *http;
                
                /* Not a valid uri, assuming it's http */