f2404 / torn-userscripts

Userscripts for Torn
GNU General Public License v3.0
20 stars 10 forks source link

CSV is not valid when the message includes quotes #3

Open mirod opened 3 years ago

mirod commented 3 years ago

Quotes are not escaped within the message.

So the CSV includes lines like this:

"Tue, 29 Dec 2020 08:04:57 GMT",Faction,"You gave $21,000,000 to <a href = "/profiles.php?XID=2352782" target = "_self">MacB</a> from <a href = "/factions.php?step=profile&ID=27223"target = "_self">Little Stompers</a>"

my CSV parser complains that this is not proper CSV, due to the quotes in the message.

To avoid the problem, I would replace cvs by tsv and be done with it.