tracker: Properly escape SPARQL arguments
authorJens Georg <mail@jensge.org>
Thu, 21 Jul 2011 20:28:42 +0000 (22:28 +0200)
committerJens Georg <mail@jensge.org>
Thu, 21 Jul 2011 20:45:27 +0000 (22:45 +0200)
src/plugins/tracker/rygel-tracker-metadata-values.vala

index e97140d..0f41db1 100644 (file)
@@ -178,7 +178,7 @@ public abstract class Rygel.Tracker.MetadataValues : Rygel.SimpleContainer {
     }
 
     protected virtual string create_filter (string variable, string value) {
-        return variable + " = \"" + value + "\"";
+        return variable + " = \"" + Query.escape_string (value) + "\"";
     }
 
     private bool is_our_child (string id) {