mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 21:18:20 +00:00
Improved file name extraction for SMTP when file name is included in Content-Type header.
This commit is contained in:
parent
43ed437daa
commit
0cf98ac325
2 changed files with 5 additions and 1 deletions
|
@ -177,6 +177,10 @@ event mime_one_header(c: connection, h: mime_header_rec)
|
|||
if ( h$name == "CONTENT-DISPOSITION" &&
|
||||
/[fF][iI][lL][eE][nN][aA][mM][eE]/ in h$value )
|
||||
c$smtp$current_entity$filename = extract_filename_from_content_disposition(h$value);
|
||||
|
||||
if ( h$name == "CONTENT-TYPE" &&
|
||||
/[nN][aA][mM][eE][:blank:]*=/ in h$value )
|
||||
c$smtp$current_entity$filename = extract_filename_from_content_disposition(h$value);
|
||||
}
|
||||
|
||||
event mime_end_entity(c: connection) &priority=-5
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue