diff options
author | W. Trevor King <[email protected]> | 2012-10-06 15:30:21 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2012-10-11 14:22:46 +0000 |
commit | 3f1329e1c9b99b1632cc4c4eec2e4399676fd93d (patch) | |
tree | 2cc05aa8d56d4ec47358c06aa624c19fe0f9b11f /src/decrypt.c | |
parent | gpgme-tool: Fix chain_id -> chain-id in KEYLIST XML. (diff) | |
download | gpgme-3f1329e1c9b99b1632cc4c4eec2e4399676fd93d.tar.gz gpgme-3f1329e1c9b99b1632cc4c4eec2e4399676fd93d.zip |
gpgme-tool: escape special characters in output XML data (<, >, and &).
[[PGP Signed Part:Undecided]]
src/gpgme-tool.c (result_xml_escape_replacement, result_xml_escape):
New.
(result_xml_tag_data): Use result_xml_escape() to escape data.
(result_add_error): Use unescaped < and >.
--
This is a general solution for generating valid XML, but the specific
output that inspired the change was from the KEYLIST command:
<uid>William Trevor King <[email protected]></uid>
Now the uids are properly escaped:
<uid>William Trevor King <[email protected]></uid>
Signed-off-by: W. Trevor King <[email protected]>
Diffstat (limited to 'src/decrypt.c')
0 files changed, 0 insertions, 0 deletions