ReJeCtAll / naxsi

Automatically exported from code.google.com/p/naxsi
Other
0 stars 0 forks source link

input files must be checked on content, not file extension #66

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
nx_util checks only the file extension when importing from logfiles. This is 
not the best thing to do because a file with extension .gz (or .bz2 in the 
future) is not necessarily a gzip compressed file.
I'd check in a manner similar to the "file" command.

Original issue reported on code.google.com by merlin8...@gmail.com on 28 Mar 2013 at 2:18

GoogleCodeExporter commented 8 years ago

Original comment by didier.c...@googlemail.com on 4 Apr 2013 at 1:56

GoogleCodeExporter commented 8 years ago
Hello,

I added support for bz2 files (in trunk)
However, I do think that it's somehow best to rely on file extensions, 
as this something quite predictable, so far extensions .bz2 and .gz are 
supported, would you see any other to add ?

Original comment by ori...@gmail.com on 6 Apr 2013 at 1:54

GoogleCodeExporter commented 8 years ago
Hmmm, maybe .xz / .lzma / .7z are candidates ? But I doubt they're commonly 
used.

Original comment by merlin8...@gmail.com on 6 Apr 2013 at 4:39