[tracker/tracker-0.6] Bug NB#123030 - Attached clip cannot be opened through music>artists, childcounts shown wrongly.
- From: Carlos Garnacho <carlosg src gnome org>
- To: svn-commits-list gnome org
- Subject: [tracker/tracker-0.6] Bug NB#123030 - Attached clip cannot be opened through music>artists, childcounts shown wrongly.
- Date: Thu, 18 Jun 2009 07:28:58 -0400 (EDT)
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]