]> spindle.queued.net Git - midori/commitdiff
Also strip search terms entered in the location entry
authorChristian Dywan <christian@twotoasts.de>
Thu, 11 Jun 2009 21:38:07 +0000 (23:38 +0200)
committerChristian Dywan <christian@twotoasts.de>
Thu, 11 Jun 2009 21:38:07 +0000 (23:38 +0200)
midori/midori-browser.c

index 86b79cf0638d23ed41807e6a009581a31663a3f9..8263c06a0d3aaa17691090e8190623b500634859 100644 (file)
@@ -2998,9 +2998,9 @@ _action_location_submit_uri (GtkAction*     action,
     stripped_uri = g_strdup (uri);
     g_strstrip (stripped_uri);
     new_uri = sokoke_magic_uri (stripped_uri, browser->search_engines);
-    g_free (stripped_uri);
     if (!new_uri)
-        new_uri = sokoke_search_uri (browser->location_entry_search, uri);
+        new_uri = sokoke_search_uri (browser->location_entry_search, stripped_uri);
+    g_free (stripped_uri);
 
     if (new_tab)
     {