From 2a8c8a74756eb86698b147361763fb0dce6bc8c1 Mon Sep 17 00:00:00 2001 From: brenosilva Date: Mon, 4 Apr 2011 15:10:49 +0000 Subject: [PATCH] force process partial when use ctl to detectiononly --- apache2/re_actions.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apache2/re_actions.c b/apache2/re_actions.c index 5ac36266..99cc60c1 100644 --- a/apache2/re_actions.c +++ b/apache2/re_actions.c @@ -865,6 +865,10 @@ static apr_status_t msre_action_ctl_execute(modsec_rec *msr, apr_pool_t *mptmp, if (strcasecmp(value, "detectiononly") == 0) { msr->txcfg->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) {