From: Christian Dywan Date: Thu, 21 Oct 2010 18:45:12 +0000 (+0200) Subject: sokoke_external_uri should return FALSE for non-URIs X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f30695ca396736fbe98ea39c38ed8ba37b8fe63;p=midori sokoke_external_uri should return FALSE for non-URIs In particular search key words. --- diff --git a/midori/sokoke.c b/midori/sokoke.c index 9a0d960b..bce377b8 100644 --- a/midori/sokoke.c +++ b/midori/sokoke.c @@ -749,6 +749,9 @@ sokoke_external_uri (const gchar* uri) return FALSE; scheme = g_uri_parse_scheme (uri); + if (!scheme) + return FALSE; + info = g_app_info_get_default_for_uri_scheme (scheme); g_free (scheme); if (info)