]> spindle.queued.net Git - midori/commitdiff
g_strescape the URI in the location completion
authorTomasz Szatkowski <szatkus@gmail.com>
Sat, 19 Feb 2011 21:26:23 +0000 (22:26 +0100)
committerChristian Dywan <christian@twotoasts.de>
Sat, 19 Feb 2011 21:32:21 +0000 (22:32 +0100)
Fixes: https://bugs.launchpad.net/midori/+bug/700004
midori/midori-locationaction.c

index bee072570f5f772d073e18cb10a384ce6ad41c9b..000fec24dddb2f2b76eadd0071a1913f5cf7c2cf 100644 (file)
@@ -1067,6 +1067,7 @@ midori_location_entry_render_text_cb (GtkCellLayout*   layout,
 {
     MidoriLocationAction* action = data;
     gchar* uri_escaped;
+    gchar* uri_temp;
     gchar* uri;
     gchar* title;
     gboolean style;
@@ -1109,8 +1110,10 @@ midori_location_entry_render_text_cb (GtkCellLayout*   layout,
     keys = g_strsplit_set (key, " %", -1);
     g_free (key);
 
-    uri = sokoke_uri_unescape_string (uri_escaped);
+    uri_temp = sokoke_uri_unescape_string (uri_escaped);
     g_free (uri_escaped);
+    uri = g_strescape (uri_temp, NULL);
+    g_free (uri_temp);
 
     if (G_LIKELY (uri))
     {