Isona / dirble

Fast directory scanning and scraping tool
GNU General Public License v3.0
614 stars 87 forks source link

Proper serialisation into JSON and XML #22

Closed sciguy16 closed 5 years ago

sciguy16 commented 5 years ago

Currently there is no sanitisation or encoding of RequestResponse data when it gets serialised into XML and JSON. A URL or Location header could contain braces or angle brackets, which will mess up the structure. We should implement or derive the Serialize trait properly write unit tests with unusual inputs.

https://github.com/nccgroup/dirble/blob/2eb9801b4083aa2a2181229199d66db899925758/src/output_format.rs#L97-L113 https://github.com/nccgroup/dirble/blob/2eb9801b4083aa2a2181229199d66db899925758/src/output_format.rs#L116-L134