Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix printing valid xml attributes for an entity #318

Merged
merged 2 commits into from
Feb 26, 2020
Merged

Fix printing valid xml attributes for an entity #318

merged 2 commits into from
Feb 26, 2020

Conversation

bjoernricks
Copy link
Contributor

@bjoernricks bjoernricks commented Feb 26, 2020

For exporting a XML report in gsad the print_entity_to_string function
is used. While reading the report entity from the response all XML
entities are unescaped. Therefore when using the
print_entity_to_string it may create invalid XML attributes. Therefore
ensure that all invalid characters for attributes (like &) are escaped
before writing the entity to the GString.

For exporting a XML report in gsad the `print_entity_to_string` function
is used. While reading the report entity from the response all XML
entities are unescaped. Therefore when using the
`print_entity_to_string` it may create invalid XML attributes. Therefore
ensure that all invalid characters for attributes (like &) are escaped
before writing the entity to the GString.
@mattmundell mattmundell merged commit f622c56 into greenbone:gvm-libs-11.0 Feb 26, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants