summaryrefslogtreecommitdiff
path: root/gdata/media
diff options
context:
space:
mode:
authorPhilip Withnall <philip@tecnocode.co.uk>2010-12-02 15:36:21 +0000
committerPhilip Withnall <philip@tecnocode.co.uk>2010-12-02 15:36:21 +0000
commite18ee7f900762b49043849ad1d66c51357f2fead (patch)
tree814d9639ff4f18f33355d5cf9f2f28c54233461a /gdata/media
parent435d9a9b250e9e81f454912e344b5e4b7707c33c (diff)
downloadlibgdata-e18ee7f900762b49043849ad1d66c51357f2fead.tar.gz
media: Fix attribute escaping for GDataMediaGroup
Note: we can't add a test case for this, as GDataMediaGroup isn't publicly exposed. Helps: bgo#631033
Diffstat (limited to 'gdata/media')
-rw-r--r--gdata/media/gdata-media-group.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdata/media/gdata-media-group.c b/gdata/media/gdata-media-group.c
index 2f3fe33d..a38997a4 100644
--- a/gdata/media/gdata-media-group.c
+++ b/gdata/media/gdata-media-group.c
@@ -284,7 +284,7 @@ get_xml (GDataParsable *parsable, GString *xml_string)
while ((comma = g_utf8_strchr (start, -1, ',')) != NULL) {
/* Copy the span */
gchar *span = g_strndup (start, comma - start);
- g_string_append (xml_string, span);
+ gdata_parser_string_append_escaped (xml_string, NULL, span, NULL);
g_free (span);
/* Add an escaped comma */
@@ -295,7 +295,7 @@ get_xml (GDataParsable *parsable, GString *xml_string)
}
/* Append the rest of the string (the entire string if there were no commas) */
- g_string_append (xml_string, start);
+ gdata_parser_string_append_escaped (xml_string, NULL, start, NULL);
}
g_string_append (xml_string, "</media:keywords>");