[tracker/tracker-0.6] Bug NB#123030 - Attached clip cannot be opened through music>artists, childcounts shown wrongly.



commit ebe4fe4d1cecbd421b75ef9f11afabca7a7a41e3
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Jun 18 13:14:44 2009 +0200

    Bug NB#123030 - Attached clip cannot be opened through music>artists, childcounts shown wrongly.
    
    Escape data in RDF queries so sqlite can digest them.

 src/libtracker-data/tracker-rdf-query.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-data/tracker-rdf-query.c b/src/libtracker-data/tracker-rdf-query.c
index 6f08512..3b70948 100644
--- a/src/libtracker-data/tracker-rdf-query.c
+++ b/src/libtracker-data/tracker-rdf-query.c
@@ -1095,8 +1095,13 @@ text_handler (GMarkupParseContext *context,
         case STATE_STRING:
         case STATE_DATE:
         case STATE_FLOAT:
+		{
+			gchar *str;
 
-                data->current_value = g_strstrip (g_strndup (text, text_len));
+			str = g_strstrip (g_strndup (text, text_len));
+			data->current_value = tracker_escape_db_string (str, FALSE);
+			g_free (str);
+		}
                 break;
         default:
                 break;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]