[Xfce4-commits] <midori:master> Dont crash on unvalid geo: links

Christian Dywan noreply at xfce.org
Mon Jul 4 23:44:01 CEST 2011


Updating branch refs/heads/master
         to aafd5bc0a0b99a0da575268d23fd18bf12ef3018 (commit)
       from e1c79b3a60d664d66bc4d837f1bed57a16fb0ae6 (commit)

commit aafd5bc0a0b99a0da575268d23fd18bf12ef3018
Author: Alexander Butenko <a.butenka at gmail.com>
Date:   Sun Jul 3 12:17:16 2011 -0400

    Dont crash on unvalid geo: links
    
    Fixes: https://bugs.launchpad.net/midori/+bug/804866

 midori/midori-view.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/midori/midori-view.c b/midori/midori-view.c
index 7b76dbe..e5edf1c 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);



More information about the Xfce4-commits mailing list