MODSEC-297

This commit is contained in:
brenosilva 2012-10-08 13:55:11 +00:00
parent 2d519ff85c
commit 5c5107a860
3 changed files with 9 additions and 0 deletions

View File

@ -301,6 +301,13 @@ int perform_interception(modsec_rec *msr) {
msr->allow_scope = ACTION_ALLOW;
break;
case ACTION_PAUSE :
status = DECLINED;
message = apr_psprintf(msr->mp, "Paused Access%s.", phase_text);
msr->was_intercepted = 0;
msr->allow_scope = ACTION_ALLOW;
break;
case ACTION_ALLOW_PHASE :
status = DECLINED;
message = apr_psprintf(msr->mp, "Access to phase allowed%s.", phase_text);

View File

@ -176,6 +176,7 @@ extern DSOLOCAL int *unicode_map_table;
#define ACTION_ALLOW 5
#define ACTION_ALLOW_REQUEST 6
#define ACTION_ALLOW_PHASE 7
#define ACTION_ALLOW_PHASE 8
#define MODSEC_DISABLED 0
#define MODSEC_DETECTION_ONLY 1

View File

@ -586,6 +586,7 @@ static char *msre_action_pause_validate(msre_engine *engine, msre_action *action
static apr_status_t msre_action_pause_init(msre_engine *engine, msre_actionset *actionset,
msre_action *action)
{
actionset->intercept_action = ACTION_PAUSE;
actionset->intercept_pause = action->param;
return 1;
}