Skip to content

Commit

Permalink
Merge pull request #318 from bjoernricks/gvm-libs-11.0
Browse files Browse the repository at this point in the history
Fix printing valid xml attributes for an entity
  • Loading branch information
mattmundell authored Feb 26, 2020
2 parents 3ccb924 + 2aa6f49 commit f622c56
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Fix missing linking to libgnutls in util/CMakeLists.txt. [#291](https://github.com/greenbone/gvm-libs/pull/291)
- Fix trust and file handling for S/MIME [#309](https://github.com/greenbone/gvm-libs/pull/309)
- Get details with get_reports in gmp_get_report_ext [#313](https://github.com/greenbone/gvm-libs/pull/313)
- Fix escaping entity attributes in print_entity_to_string [#318](https://github.com/greenbone/gvm-libs/pull/318)

[11.0.1]: https://github.com/greenbone/gvm-libs/compare/v11.0.0...gvm-libs-11.0

Expand Down
5 changes: 4 additions & 1 deletion util/xmlutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -1274,8 +1274,11 @@ static void
foreach_print_attribute_to_string (gpointer name, gpointer value,
gpointer string)
{
gchar *text_escaped;
text_escaped = g_markup_escape_text ((gchar *) value, -1);
g_string_append_printf ((GString *) string, " %s=\"%s\"", (char *) name,
(char *) value);
text_escaped);
g_free (text_escaped);
}

/**
Expand Down

0 comments on commit f622c56

Please sign in to comment.