mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
MODSEC-297
This commit is contained in:
@@ -301,6 +301,13 @@ int perform_interception(modsec_rec *msr) {
|
|||||||
msr->allow_scope = ACTION_ALLOW;
|
msr->allow_scope = ACTION_ALLOW;
|
||||||
break;
|
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 :
|
case ACTION_ALLOW_PHASE :
|
||||||
status = DECLINED;
|
status = DECLINED;
|
||||||
message = apr_psprintf(msr->mp, "Access to phase allowed%s.", phase_text);
|
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 5
|
||||||
#define ACTION_ALLOW_REQUEST 6
|
#define ACTION_ALLOW_REQUEST 6
|
||||||
#define ACTION_ALLOW_PHASE 7
|
#define ACTION_ALLOW_PHASE 7
|
||||||
|
#define ACTION_ALLOW_PHASE 8
|
||||||
|
|
||||||
#define MODSEC_DISABLED 0
|
#define MODSEC_DISABLED 0
|
||||||
#define MODSEC_DETECTION_ONLY 1
|
#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,
|
static apr_status_t msre_action_pause_init(msre_engine *engine, msre_actionset *actionset,
|
||||||
msre_action *action)
|
msre_action *action)
|
||||||
{
|
{
|
||||||
|
actionset->intercept_action = ACTION_PAUSE;
|
||||||
actionset->intercept_pause = action->param;
|
actionset->intercept_pause = action->param;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user