From 9f30695ca396736fbe98ea39c38ed8ba37b8fe63 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Thu, 21 Oct 2010 20:45:12 +0200 Subject: [PATCH] sokoke_external_uri should return FALSE for non-URIs In particular search key words. --- midori/sokoke.c | 3 +++ 1 file changed, 3 insertions(+) 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)