mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
HTTP now uses the extract_filename_from_content_disposition function.
This commit is contained in:
parent
adc486c673
commit
8e7a76b548
1 changed files with 1 additions and 1 deletions
|
@ -214,7 +214,7 @@ event http_header(c: connection, is_orig: bool, name: string, value: string) &pr
|
||||||
c$http$response_content_length = extract_count(value);
|
c$http$response_content_length = extract_count(value);
|
||||||
else if ( name == "CONTENT-DISPOSITION" &&
|
else if ( name == "CONTENT-DISPOSITION" &&
|
||||||
/[fF][iI][lL][eE][nN][aA][mM][eE]/ in value )
|
/[fF][iI][lL][eE][nN][aA][mM][eE]/ in value )
|
||||||
c$http$filename = sub(value, /^.*[fF][iI][lL][eE][nN][aA][mM][eE]=/, "");
|
c$http$filename = extract_filename_from_content_disposition(value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue