Fix for an evasion false positive, mistaking a multipart non-boundary for a boundary.

This commit is contained in:
ivanr
2007-11-08 18:13:50 +00:00
parent 48d9956bc0
commit 9b5a42480b

View File

@@ -925,7 +925,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;