From 80532a685adc518446504997bc89129e76a7651a Mon Sep 17 00:00:00 2001 From: Maximilian Güntner Date: Fri, 15 Nov 2013 01:39:01 +0100 Subject: Escape all problematic characters when saving a tag MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maximilian Güntner Signed-off-by: Dirk Hohndel --- save-xml.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/save-xml.c b/save-xml.c index 5b0ef42ec..d16b16daf 100644 --- a/save-xml.c +++ b/save-xml.c @@ -406,9 +406,9 @@ static void save_tags(FILE *f, struct tag_entry *tag_list) fprintf(f, ", "); /* If the tag has been translated, write the source to the xml file */ if (tmp->tag->source != NULL) - fprintf(f, "%s", tmp->tag->source); + quote(f, tmp->tag->source, 0); else - fprintf(f, "%s", tmp->tag->name); + quote(f, tmp->tag->name, 0); tmp = tmp->next; more = 1; } -- cgit v1.2.3-70-g09d2