mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
MODSEC-297
This commit is contained in:
parent
2d519ff85c
commit
5c5107a860
@ -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);
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user