Strip whitespace from the location entry input
This commit is contained in:
parent
b284b2de7a
commit
fd19d34410
1 changed files with 5 additions and 1 deletions
|
@ -2991,10 +2991,14 @@ _action_location_submit_uri (GtkAction* action,
|
||||||
gboolean new_tab,
|
gboolean new_tab,
|
||||||
MidoriBrowser* browser)
|
MidoriBrowser* browser)
|
||||||
{
|
{
|
||||||
|
gchar* stripped_uri;
|
||||||
gchar* new_uri;
|
gchar* new_uri;
|
||||||
gint n;
|
gint n;
|
||||||
|
|
||||||
new_uri = sokoke_magic_uri (uri, browser->search_engines);
|
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)
|
if (!new_uri)
|
||||||
new_uri = sokoke_search_uri (browser->location_entry_search, uri);
|
new_uri = sokoke_search_uri (browser->location_entry_search, uri);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue