Decode URIs before updating the locationbar
This commit is contained in:
parent
46b63639f6
commit
44a2351b72
2 changed files with 6 additions and 6 deletions
|
@ -609,9 +609,7 @@ midori_view_notify_title_cb (GtkWidget* widget,
|
|||
uri = midori_view_get_display_uri (view);
|
||||
title = midori_view_get_display_title (view);
|
||||
action = _action_by_name (browser, "Location");
|
||||
if (browser->maximum_history_age)
|
||||
midori_location_action_set_title_for_uri (
|
||||
MIDORI_LOCATION_ACTION (action), title, uri);
|
||||
|
||||
if (midori_view_get_load_status (view) == MIDORI_LOAD_COMMITTED)
|
||||
{
|
||||
KatzeItem* item;
|
||||
|
|
|
@ -1445,12 +1445,14 @@ void
|
|||
midori_location_action_set_uri (MidoriLocationAction* location_action,
|
||||
const gchar* uri)
|
||||
{
|
||||
gchar* escaped_uri;
|
||||
|
||||
g_return_if_fail (MIDORI_IS_LOCATION_ACTION (location_action));
|
||||
g_return_if_fail (uri != NULL);
|
||||
|
||||
katze_assign (location_action->uri, g_uri_unescape_string (uri, ""));
|
||||
|
||||
midori_location_action_set_text (location_action, uri);
|
||||
escaped_uri = g_uri_unescape_string (uri, "");
|
||||
midori_location_action_set_text (location_action, escaped_uri);
|
||||
g_free (escaped_uri);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue