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, ", ");
|
fprintf(f, ", ");
|
||||||
/* If the tag has been translated, write the source to the xml file */
|
/* If the tag has been translated, write the source to the xml file */
|
||||||
if (tmp->tag->source != NULL)
|
if (tmp->tag->source != NULL)
|
||||||
fprintf(f, "%s", tmp->tag->source);
|
quote(f, tmp->tag->source, 0);
|
||||||
else
|
else
|
||||||
fprintf(f, "%s", tmp->tag->name);
|
quote(f, tmp->tag->name, 0);
|
||||||
tmp = tmp->next;
|
tmp = tmp->next;
|
||||||
more = 1;
|
more = 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue