Better discovery of partial quoting evasion.

This commit is contained in:
ivanr 2007-08-10 14:51:55 +00:00
parent b1949b7ebc
commit 323f9f81a0

View File

@ -574,7 +574,11 @@ int multipart_init(modsec_rec *msr, char **error_msg) {
}
} else {
/* Not quoted. */
if (*b == '"') {
/* Test for partial quoting. */
if ( (*b == '"')
|| ((len >= 2)&&(*(b + len - 1) == '"')) )
{
*error_msg = apr_psprintf(msr->mp, "Invalid boundary (quote).");
return -1;
}