From: Carlos Garcia Campos Date: Sun, 12 Oct 2008 12:06:24 +0000 (+0000) Subject: Do not consider mailto links as http uris. Fixes bug #555801. X-Git-Tag: EVINCE_2_24_1~9 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=f2eb539ec8bb00860c34dfb4380879eeff8bab09;p=evince.git Do not consider mailto links as http uris. Fixes bug #555801. 2008-10-12 Carlos Garcia Campos * shell/ev-window.c: (launch_external_uri): Do not consider mailto links as http uris. Fixes bug #555801. svn path=/trunk/; revision=3218 --- diff --git a/ChangeLog b/ChangeLog index 1ecf9c94..22c3c5a5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-10-12 Carlos Garcia Campos + + * shell/ev-window.c: (launch_external_uri): + + Do not consider mailto links as http uris. Fixes bug #555801. + 2008-10-06 Carlos Garcia Campos * shell/ev-view.c: (merge_selection_region), (clear_selection): diff --git a/shell/ev-window.c b/shell/ev-window.c index 44a68c66..0b2fd182 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 */