From: Christian Dywan Date: Thu, 11 Jun 2009 21:38:07 +0000 (+0200) Subject: Also strip search terms entered in the location entry X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58d2b443169f441a173883f79f437d129f50160d;p=midori Also strip search terms entered in the location entry --- 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) {