diff options
author | Carlos Garcia Campos <carlosgc@gnome.org> | 2008-10-12 12:06:24 (GMT) |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@src.gnome.org> | 2008-10-12 12:06:24 (GMT) |
commit | f2eb539ec8bb00860c34dfb4380879eeff8bab09 (patch) | |
tree | 89f10d56423e12abf94ff5f2265824d1d5cfab89 | |
parent | c630d3976c351bc729888aabf02ac0b65fae80cf (diff) |
Do not consider mailto links as http uris. Fixes bug #555801.
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
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | shell/ev-window.c | 3 |
2 files changed, 8 insertions, 1 deletions
@@ -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): diff --git a/shell/ev-window.c b/shell/ev-window.c index 44a68c6..0b2fd18 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -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 */ |