mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 03:34:29 +03:00
Fixed false positive MULTIPART_UNMATCHED_BOUNDARY errors
This commit is contained in:
committed by
Felipe Zimmerle
parent
95048d5fcf
commit
af4afd348c
@@ -1482,6 +1482,11 @@ bool Multipart::process(const std::string& data, std::string *error,
|
||||
&& (strncmp(m_buf + 2, m_boundary.c_str(),
|
||||
m_boundary.size()) == 0)) {
|
||||
char *boundary_end = m_buf + 2 + m_boundary.size();
|
||||
/* if it match, AND there was a matched boundary at least,
|
||||
clear the m_flag_unmatched_boundary flag */
|
||||
if (m_boundary_count > 0) {
|
||||
m_flag_unmatched_boundary = 0;
|
||||
}
|
||||
int is_final = 0;
|
||||
|
||||
/* Is this the final boundary? */
|
||||
|
Reference in New Issue
Block a user