mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-16 07:56:12 +03:00
Fix for an evasion false positive.
This commit is contained in:
parent
83fb4b4da4
commit
cd2287a412
@ -950,7 +950,7 @@ int multipart_process_chunk(modsec_rec *msr, const char *buf,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( (p != msr->mpd->buf + 2)
|
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. */
|
/* Found whitespace in front of a boundary. */
|
||||||
msr->mpd->flag_error = 1;
|
msr->mpd->flag_error = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user