summaryrefslogtreecommitdiff
path: root/gdata/gcontact
diff options
context:
space:
mode:
authorPhilip Withnall <philip@tecnocode.co.uk>2010-12-02 12:20:40 +0000
committerPhilip Withnall <philip@tecnocode.co.uk>2010-12-02 12:20:40 +0000
commit91c1bc17304dcde4356652ac2ed2552961e34d36 (patch)
treefa6205e1bdbf3c9296dd3a83226d57cddf73d35f /gdata/gcontact
parent807ae95cb8d2baac80002c4bb79118f9de2b1e1f (diff)
downloadlibgdata-91c1bc17304dcde4356652ac2ed2552961e34d36.tar.gz
gcontact: Fix attribute escaping for GDataGContactRelation
Helps: bgo#631033
Diffstat (limited to 'gdata/gcontact')
-rw-r--r--gdata/gcontact/gdata-gcontact-relation.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdata/gcontact/gdata-gcontact-relation.c b/gdata/gcontact/gdata-gcontact-relation.c
index 19ac993b..2cfcac5d 100644
--- a/gdata/gcontact/gdata-gcontact-relation.c
+++ b/gdata/gcontact/gdata-gcontact-relation.c
@@ -243,7 +243,7 @@ pre_get_xml (GDataParsable *parsable, GString *xml_string)
GDataGContactRelationPrivate *priv = GDATA_GCONTACT_RELATION (parsable)->priv;
if (priv->relation_type != NULL)
- g_string_append_printf (xml_string, " rel='%s'", priv->relation_type);
+ gdata_parser_string_append_escaped (xml_string, " rel='", priv->relation_type, "'");
else if (priv->label != NULL)
gdata_parser_string_append_escaped (xml_string, " label='", priv->label, "'");
else