[Xfce4-commits] <midori:master> Skip bookmark URIS starting with '('

Christian Dywan noreply at xfce.org
Thu Jul 1 23:38:05 CEST 2010


Updating branch refs/heads/master
         to 60593b27d17f657193b48b07364585f67539fdb5 (commit)
       from 6fb35107a0d948b4e8f20d13641133ec9643013b (commit)

commit 60593b27d17f657193b48b07364585f67539fdb5
Author: Alexander Butenko <a.butenka at gmail.com>
Date:   Thu Jul 1 22:09:58 2010 +0200

    Skip bookmark URIS starting with '('
    
    Due to a bug in the sqlite handling we were happily adding
    folders with '(null') and it happened to work until now.

 midori/midori-array.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/midori/midori-array.c b/midori/midori-array.c
index ca8390d..5230d58 100644
--- a/midori/midori-array.c
+++ b/midori/midori-array.c
@@ -768,7 +768,7 @@ katze_item_set_value_from_column (sqlite3_stmt* stmt,
     {
         const unsigned char* uri;
         uri = sqlite3_column_text (stmt, column);
-        if (uri && uri[0])
+        if (uri && uri[0] && uri[0] != '(')
             katze_item_set_uri (item, (gchar*)uri);
     }
     else if (g_str_equal (name, "title") || g_str_equal (name, "name"))



More information about the Xfce4-commits mailing list