{http,smtp}/entities: Align header regexes with extract_filename_from_content_disposition()

This commit is contained in:
Arne Welzel 2022-10-18 19:53:46 +02:00 committed by Tim Wojtulewicz
parent 6ef9423f3c
commit 8b04868de3
6 changed files with 43 additions and 3 deletions

View file

@ -63,7 +63,7 @@ event mime_one_header(c: connection, h: mime_header_rec) &priority=5
}
if ( h$name == "CONTENT-DISPOSITION" &&
/[fF][iI][lL][eE][nN][aA][mM][eE]/ in h$value )
/[fF][iI][lL][eE][nN][aA][mM][eE][[:blank:]]*\*?=/ in h$value )
c$smtp$entity$filename = extract_filename_from_content_disposition(h$value);
if ( h$name == "CONTENT-TYPE" &&