mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Improve multipart HTTP/MIME entity file analysis.
Singular CR or LF characters in multipart body content are no longer converted to a full CRLF (thus corrupting the file) and it also no longer considers the CRLF before the multipart boundary as part of the content. Addresses BIT-1235.
This commit is contained in:
parent
73cc81f44a
commit
d5513a0757
13 changed files with 82 additions and 31 deletions
|
@ -15,6 +15,9 @@ public:
|
|||
ContentLine_Analyzer(Connection* conn, bool orig);
|
||||
~ContentLine_Analyzer();
|
||||
|
||||
void SupressWeirds(bool enable)
|
||||
{ suppress_weirds = enable; }
|
||||
|
||||
// If enabled, flag (first) line with embedded NUL. Default off.
|
||||
void SetIsNULSensitive(bool enable)
|
||||
{ flag_NULs = enable; }
|
||||
|
@ -96,6 +99,8 @@ protected:
|
|||
// Don't deliver further data.
|
||||
int skip_deliveries;
|
||||
|
||||
bool suppress_weirds;
|
||||
|
||||
// If true, flag (first) line with embedded NUL.
|
||||
unsigned int flag_NULs:1;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue