Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorCarlos 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)
commitf2eb539ec8bb00860c34dfb4380879eeff8bab09 (patch)
tree89f10d56423e12abf94ff5f2265824d1d5cfab89 /shell
parentc630d3976c351bc729888aabf02ac0b65fae80cf (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
Diffstat (limited to 'shell')
-rw-r--r--shell/ev-window.c3
1 files changed, 2 insertions, 1 deletions
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 */