this post was submitted on 03 Nov 2025
1188 points (98.3% liked)

memes

18087 readers
2661 users here now

Community rules

1. Be civilNo trolling, bigotry or other insulting / annoying behaviour

2. No politicsThis is non-politics community. For political memes please go to !politicalmemes@lemmy.world

3. No recent repostsCheck for reposts when posting a meme, you can only repost after 1 month

4. No botsNo bots without the express approval of the mods or the admins

5. No Spam/Ads/AI SlopNo advertisements or spam. This is an instance rule and the only way to live. We also consider AI slop to be spam in this community and is subject to removal.

A collection of some classic Lemmy memes for your enjoyment

Sister communities

founded 2 years ago
MODERATORS
1188
submitted 2 weeks ago* (last edited 2 weeks ago) by TehBamski@lemmy.world to c/memes@lemmy.world
 
you are viewing a single comment's thread
view the rest of the comments
[–] sylver_dragon@lemmy.world 51 points 2 weeks ago (4 children)

Sadly, no. CSV files can deal with embedded commas via quoting or escaping. Given that most of the dumps are going to be put together and consumed via common libraries (e.g.python's csv module), that's all going to happen automagically.

[–] nymnympseudonym@piefed.social 23 points 2 weeks ago

Can be != will be

You're looping over 50M records, extracting into your csv. Did you bother using the appropriate library, or did your little perl script just do split(/,/,$line)

[–] bassomitron@lemmy.world 12 points 2 weeks ago (1 children)

What about quotes (single/double) and \s mixed with commas?

[–] ilinamorato@lemmy.world 14 points 2 weeks ago (1 children)

Everything you can use for a password can be escaped out of a csv. Partially because csvs have to be interoperable with databases for a bunch of different reasons, and databases are where your passwords are stored (though ideally not in plaintext). There's no way that I can think of to poison your password for a data breach that wouldn't also poison the password database for the service you're trying to log into.

[–] bassomitron@lemmy.world 4 points 2 weeks ago

Gotcha, that's what I was thinking as well. I haven't done any software development in a long time (I have a degree in it, but professional career sent me down another path in tech), so my memory on input sanitization is very rusty. Thanks for the response!

[–] SaharaMaleikuhm@feddit.org 6 points 2 weeks ago

Once in a while you come across fools like me who write it all from scratch cause it's fun. Live and learn