lostisland/faraday

Faraday strips new lines from description field when creating CSV

Closed this issue · 2 comments

Basic Info

  • Faraday Version: v1.0.1
  • Ruby Version: ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux-gnu]

Issue description

Faraday CSV file strips new lines and stacked whitespaces from description field.

Steps to reproduce

Write a vulnerability description that contains new lines such as:
image

Once a CSV is downloaded, that description lacks new lines and whitespaces, resulting in one line blob:
image

If you agree to change this, I'm willing to make the changes in code myself. If anyone knows where this code is, please point me to it.

Hi @gister9000, I'm not really sure this is something Faraday does, as it shouldn't mess with the response body. Could you please share the Ruby code you use to make the call and setup your faraday connection so I can have a look?
Also, it would be useful to compare Faraday's behaviour with other standard libraries or cURL, just to ensure that it's not an issue on the server

Sorry, I was meant to post this on infobyte/faraday repo (collaborative pentest faraday). Please delete this