[libgdata] media: Fix attribute escaping for GDataMediaGroup



commit e18ee7f900762b49043849ad1d66c51357f2fead
Author: Philip Withnall <philip tecnocode co uk>
Date:   Thu Dec 2 15:36:21 2010 +0000

    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

 gdata/media/gdata-media-group.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdata/media/gdata-media-group.c b/gdata/media/gdata-media-group.c
index 2f3fe33..a38997a 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>");



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