mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 03:34:29 +03:00
Added logdata action (still needs byte limit). See #40.
This commit is contained in:
@@ -232,6 +232,15 @@ static apr_status_t msre_action_msg_init(msre_engine *engine, msre_actionset *ac
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* logdata */
|
||||
|
||||
static apr_status_t msre_action_logdata_init(msre_engine *engine, msre_actionset *actionset,
|
||||
msre_action *action)
|
||||
{
|
||||
actionset->logdata = action->param;
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* severity */
|
||||
|
||||
static apr_status_t msre_action_severity_init(msre_engine *engine,
|
||||
@@ -1424,6 +1433,18 @@ void msre_engine_register_default_actions(msre_engine *engine) {
|
||||
NULL
|
||||
);
|
||||
|
||||
/* logdata */
|
||||
msre_engine_action_register(engine,
|
||||
"logdata",
|
||||
ACTION_METADATA,
|
||||
1, 1,
|
||||
NO_PLUS_MINUS,
|
||||
ACTION_CARDINALITY_ONE,
|
||||
NULL,
|
||||
msre_action_logdata_init,
|
||||
NULL
|
||||
);
|
||||
|
||||
/* severity */
|
||||
msre_engine_action_register(engine,
|
||||
"severity",
|
||||
|
Reference in New Issue
Block a user