[Xfce4-commits] <midori:master> Do not validate URI or title when rendering completion matches

Christian Dywan noreply at xfce.org
Tue Jan 26 22:08:02 CET 2010


Updating branch refs/heads/master
         to 38d0022ec8ada3aa9b7450bad549a78bed1fc2ff (commit)
       from 7b42792caf38b4c632f1423889caee610eccecee (commit)

commit 38d0022ec8ada3aa9b7450bad549a78bed1fc2ff
Author: Christian Dywan <christian at twotoasts.de>
Date:   Tue Jan 26 22:07:15 2010 +0100

    Do not validate URI or title when rendering completion matches

 midori/midori-locationaction.c |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)

diff --git a/midori/midori-locationaction.c b/midori/midori-locationaction.c
index aa6bfbb..69031dc 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))
         {



More information about the Xfce4-commits mailing list