mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Fix quote validation in multipart code
This commit is contained in:
@@ -36,7 +36,7 @@ void validate_quotes(modsec_rec *msr, unsigned char *data) {
|
||||
|
||||
for(i = 0; i < len; i++) {
|
||||
|
||||
if(data[i] == '\'' && (data[0] != '\"' || data[len-1] != '\"')) {
|
||||
if(data[i] == '\'') {
|
||||
if (msr->txcfg->debuglog_level >= 9) {
|
||||
msr_log(msr, 9, "Multipart: Invalid quoting detected: %s length %d bytes",
|
||||
log_escape_nq(msr->mp, data), len);
|
||||
|
Reference in New Issue
Block a user