g_strescape the URI in the location completion
Fixes: https://bugs.launchpad.net/midori/+bug/700004
This commit is contained in:
parent
85e78eab9a
commit
ce106b0d7f
1 changed files with 4 additions and 1 deletions
|
@ -1067,6 +1067,7 @@ midori_location_entry_render_text_cb (GtkCellLayout* layout,
|
||||||
{
|
{
|
||||||
MidoriLocationAction* action = data;
|
MidoriLocationAction* action = data;
|
||||||
gchar* uri_escaped;
|
gchar* uri_escaped;
|
||||||
|
gchar* uri_temp;
|
||||||
gchar* uri;
|
gchar* uri;
|
||||||
gchar* title;
|
gchar* title;
|
||||||
gboolean style;
|
gboolean style;
|
||||||
|
@ -1109,8 +1110,10 @@ midori_location_entry_render_text_cb (GtkCellLayout* layout,
|
||||||
keys = g_strsplit_set (key, " %", -1);
|
keys = g_strsplit_set (key, " %", -1);
|
||||||
g_free (key);
|
g_free (key);
|
||||||
|
|
||||||
uri = sokoke_uri_unescape_string (uri_escaped);
|
uri_temp = sokoke_uri_unescape_string (uri_escaped);
|
||||||
g_free (uri_escaped);
|
g_free (uri_escaped);
|
||||||
|
uri = g_strescape (uri_temp, NULL);
|
||||||
|
g_free (uri_temp);
|
||||||
|
|
||||||
if (G_LIKELY (uri))
|
if (G_LIKELY (uri))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue