Escape all problematic characters when saving a tag

Signed-off-by: Maximilian Güntner <maximilian.guentner@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Maximilian Güntner 2013-11-15 01:39:01 +01:00 committed by Dirk Hohndel
parent 17fbb6b17f
commit 80532a685a

View file

@ -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;
}