[Xfce4-commits] <midori:master> g_strescape the URI in the location completion
Christian Dywan
noreply at xfce.org
Sat Feb 19 22:48:02 CET 2011
Updating branch refs/heads/master
to ce106b0d7f190d280c115d53ce7231eac115c171 (commit)
from 85e78eab9ae36f0a20afcc749d2cae746b770de5 (commit)
commit ce106b0d7f190d280c115d53ce7231eac115c171
Author: Tomasz Szatkowski <szatkus at gmail.com>
Date: Sat Feb 19 22:26:23 2011 +0100
g_strescape the URI in the location completion
Fixes: https://bugs.launchpad.net/midori/+bug/700004
midori/midori-locationaction.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/midori/midori-locationaction.c b/midori/midori-locationaction.c
index bee0725..000fec2 100644
--- a/midori/midori-locationaction.c
+++ b/midori/midori-locationaction.c
@@ -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))
{
More information about the Xfce4-commits
mailing list