[libgdata] youtube: Fix attribute escaping for GDataYouTubeCredit



commit 6de8fc98f282e338e372b1ab612e05e37925707a
Author: Philip Withnall <philip tecnocode co uk>
Date:   Thu Dec 2 17:24:55 2010 +0000

    youtube: Fix attribute escaping for GDataYouTubeCredit
    
    Note: we can't add a test case for this, as GDataYouTubeCredit isn't publicly
    exposed.
    
    Helps: bgo#631033

 gdata/services/youtube/gdata-youtube-credit.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdata/services/youtube/gdata-youtube-credit.c b/gdata/services/youtube/gdata-youtube-credit.c
index 3e47563..69e5caa 100644
--- a/gdata/services/youtube/gdata-youtube-credit.c
+++ b/gdata/services/youtube/gdata-youtube-credit.c
@@ -139,7 +139,7 @@ pre_get_xml (GDataParsable *parsable, GString *xml_string)
 	GDATA_PARSABLE_CLASS (gdata_youtube_credit_parent_class)->pre_get_xml (parsable, xml_string);
 
 	if (priv->entity_type != NULL)
-		g_string_append_printf (xml_string, " type='%s'", priv->entity_type);
+		gdata_parser_string_append_escaped (xml_string, " type='", priv->entity_type, "'");
 }
 
 static void



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