[rygel/gnome-2-32] tracker: URI escape metadata titles for IDs
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel/gnome-2-32] tracker: URI escape metadata titles for IDs
- Date: Mon, 18 Oct 2010 20:58:21 +0000 (UTC)
commit 1aafe79f5ceb50888fef09a2763cad44eb190e41
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Fri Oct 8 15:44:52 2010 +0300
tracker: URI escape metadata titles for IDs
The titles might have charachters like ',' and ':' that we use for
separating differents parts of the ID so we better escape the strings
from Tracker before using it in the IDs.
.../tracker/rygel-tracker-metadata-values.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/tracker/rygel-tracker-metadata-values.vala b/src/plugins/tracker/rygel-tracker-metadata-values.vala
index aa2dc74..690638a 100644
--- a/src/plugins/tracker/rygel-tracker-metadata-values.vala
+++ b/src/plugins/tracker/rygel-tracker-metadata-values.vala
@@ -164,7 +164,7 @@ public abstract class Rygel.Tracker.MetadataValues : Rygel.SimpleContainer {
}
protected virtual string create_id_for_title (string title) {
- return this.id + ":" + title;
+ return this.id + ":" + Uri.escape_string (title, "", true);
}
protected virtual string create_title_for_value (string value) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]