mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Adds support to ctl:auditLogParts variation
This commit is contained in:
@@ -28,10 +28,14 @@ Driver::Driver()
|
||||
: trace_scanning(false),
|
||||
trace_parsing(false) {
|
||||
audit_log = new AuditLog();
|
||||
audit_log->refCountIncrease();
|
||||
}
|
||||
|
||||
|
||||
Driver::~Driver() {
|
||||
if (audit_log != NULL) {
|
||||
audit_log->refCountDecreaseAndCheck();
|
||||
}
|
||||
delete loc.back();
|
||||
}
|
||||
|
||||
|
@@ -18,6 +18,7 @@ class Driver;
|
||||
|
||||
#include "actions/action.h"
|
||||
#include "actions/audit_log.h"
|
||||
#include "actions/ctl_audit_log_parts.h"
|
||||
#include "actions/set_var.h"
|
||||
#include "actions/severity.h"
|
||||
#include "actions/msg.h"
|
||||
@@ -47,6 +48,7 @@ class Driver;
|
||||
#include "variables/time_year.h"
|
||||
|
||||
using ModSecurity::actions::Action;
|
||||
using ModSecurity::actions::CtlAuditLogParts;
|
||||
using ModSecurity::actions::SetVar;
|
||||
using ModSecurity::actions::Severity;
|
||||
using ModSecurity::actions::Tag;
|
||||
@@ -653,8 +655,7 @@ act:
|
||||
}
|
||||
| ACTION_CTL_AUDIT_LOG_PARTS
|
||||
{
|
||||
/* not ready yet. */
|
||||
$$ = Action::instantiate($1);
|
||||
$$ = new CtlAuditLogParts($1);
|
||||
}
|
||||
;
|
||||
|
||||
|
Reference in New Issue
Block a user