From 58d2b443169f441a173883f79f437d129f50160d Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Thu, 11 Jun 2009 23:38:07 +0200 Subject: [PATCH] Also strip search terms entered in the location entry --- midori/midori-browser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/midori/midori-browser.c b/midori/midori-browser.c index 86b79cf0..8263c06a 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -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) { -- 2.39.5