3 ms·
> I eventually just gave up and made my script ignore any filenames containing \n I think we can all do that. Did anyone ever came across a legitimate reason
by jackewiehose 7y ago
> I eventually just gave up and made my script ignore any filenames containing \n
I think we can all do that. Did anyone ever came across a
legitimate reason for filenames with newlines? All I can think
of are intentionally bad-named files to exploit bugs. Those
filenames should be avoided in the first place.
- strbean 7y agoSeems like a great argument for ensuring those are handled correctly, so you don't get bit by a maliciously named file.
- oblio 7y agoHe is handling it correctly, he's ignoring those files.
- why-oh-why 7y agoMaybe being ignored (i.e. hidden) is the malicious intent. What if the largest file on your drive has that filename and no tool can show it?