[PATCH v2] gpgme-tool: escape special characters in output XML data (<, >, and &).

Werner Koch wk at gnupg.org
Thu Oct 11 17:05:52 CEST 2012


On Sat,  6 Oct 2012 17:30, wking at tremily.us said:
> 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 >.

Applied.  I also commited an additional change to make the code more
robust.


Salam-Shalom,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.




More information about the Gnupg-devel mailing list