force process partial when use ctl to detectiononly

This commit is contained in:
brenosilva
2011-04-04 15:10:49 +00:00
parent ed4e98c64f
commit 2a8c8a7475

View File

@@ -865,6 +865,10 @@ static apr_status_t msre_action_ctl_execute(modsec_rec *msr, apr_pool_t *mptmp,
if (strcasecmp(value, "detectiononly") == 0) { if (strcasecmp(value, "detectiononly") == 0) {
msr->txcfg->is_enabled = MODSEC_DETECTION_ONLY; msr->txcfg->is_enabled = MODSEC_DETECTION_ONLY;
msr->usercfg->is_enabled = MODSEC_DETECTION_ONLY; msr->usercfg->is_enabled = MODSEC_DETECTION_ONLY;
msr->txcfg->if_limit_action = REQUEST_BODY_LIMIT_ACTION_PARTIAL;
msr->usercfg->if_limit_action = REQUEST_BODY_LIMIT_ACTION_PARTIAL;
msr->txcfg->of_limit_action = REQUEST_BODY_LIMIT_ACTION_PARTIAL;
msr->usercfg->of_limit_action = REQUEST_BODY_LIMIT_ACTION_PARTIAL;
} }
if (msr->txcfg->debuglog_level >= 4) { if (msr->txcfg->debuglog_level >= 4) {