mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 17:18:20 +00:00
FileAnalysis: libmagic tweaks.
Remove verbose file type detection and automatically strip out charset from mime type.
This commit is contained in:
parent
2fba37e277
commit
e81f2ae7b0
23 changed files with 27 additions and 70 deletions
|
@ -49,7 +49,7 @@ event file_new(f: fa_file) &priority=5
|
|||
|
||||
c$http$mime_type = f$mime_type;
|
||||
|
||||
local mime_str: string = split1(f$mime_type, /;/)[1];
|
||||
local mime_str: string = c$http$mime_type;
|
||||
|
||||
if ( mime_str !in mime_types_extensions ) next;
|
||||
if ( ! c$http?$uri ) next;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue