From: Alexander Butenko Date: Sun, 3 Jul 2011 16:17:16 +0000 (-0400) Subject: Dont crash on unvalid geo: links X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aafd5bc0a0b99a0da575268d23fd18bf12ef3018;p=midori Dont crash on unvalid geo: links Fixes: https://bugs.launchpad.net/midori/+bug/804866 --- 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);