mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
17fbb6b17f
commit
80532a685a
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue