From: Christian Dywan Date: Tue, 26 Jan 2010 21:07:15 +0000 (+0100) Subject: Do not validate URI or title when rendering completion matches X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38d0022ec8ada3aa9b7450bad549a78bed1fc2ff;p=midori Do not validate URI or title when rendering completion matches --- diff --git a/midori/midori-locationaction.c b/midori/midori-locationaction.c index aa6bfbbf..69031dc9 100644 --- a/midori/midori-locationaction.c +++ b/midori/midori-locationaction.c @@ -946,10 +946,6 @@ midori_location_entry_render_text_cb (GtkCellLayout* layout, if (G_LIKELY (uri)) { - /* g_uri_unescape_segment () sometimes produces garbage */ - if (!g_utf8_validate (uri, -1, (const gchar **)&temp)) - temp[0] = '\0'; - temp = g_utf8_strdown (uri, -1); if ((start = strstr (temp, key)) && (start - temp)) { @@ -971,10 +967,6 @@ midori_location_entry_render_text_cb (GtkCellLayout* layout, if (G_LIKELY (title)) { - /* g_uri_unescape_segment () sometimes produces garbage */ - if (!g_utf8_validate (title, -1, (const gchar **)&temp)) - temp[0] = '\0'; - temp = g_utf8_strdown (title, -1); if ((start = strstr (temp, key)) && (start - temp)) {