From aafd5bc0a0b99a0da575268d23fd18bf12ef3018 Mon Sep 17 00:00:00 2001 From: Alexander Butenko Date: Sun, 3 Jul 2011 12:17:16 -0400 Subject: [PATCH] Dont crash on unvalid geo: links Fixes: https://bugs.launchpad.net/midori/+bug/804866 --- midori/midori-view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/midori/midori-view.c b/midori/midori-view.c index 7b76dbeb..e5edf1cd 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -862,7 +862,7 @@ midori_view_web_view_navigation_decision_cb (WebKitWebView* web_view JSContextRef js_context; gchar* result; const gchar* uri = webkit_network_request_get_uri (request); - if (g_str_has_prefix (uri, "geo:")) + if (g_str_has_prefix (uri, "geo:") && strstr (uri, ",")) { gchar* new_uri = sokoke_magic_uri (uri); midori_view_set_uri (view, new_uri);