mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Fix for an evasion false positive.
This commit is contained in:
@@ -950,7 +950,7 @@ int multipart_process_chunk(modsec_rec *msr, const char *buf,
|
||||
}
|
||||
|
||||
if ( (p != msr->mpd->buf + 2)
|
||||
&& (strncmp(p, msr->mpd->boundary, strlen(msr->mpd->boundary)))
|
||||
&& (strncmp(p, msr->mpd->boundary, strlen(msr->mpd->boundary)) == 0)
|
||||
) {
|
||||
/* Found whitespace in front of a boundary. */
|
||||
msr->mpd->flag_error = 1;
|
||||
|
Reference in New Issue
Block a user