mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-01 03:57:47 +03:00
Adds initial support to the multiMatch action
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
|
||||
#include "modsecurity/transaction.h"
|
||||
#include "modsecurity/rule.h"
|
||||
#include "src/utils/string.h"
|
||||
|
||||
#include "src/actions/block.h"
|
||||
#include "src/actions/chain.h"
|
||||
@@ -33,7 +34,7 @@
|
||||
#include "src/actions/pass.h"
|
||||
#include "src/actions/log.h"
|
||||
#include "src/actions/no_log.h"
|
||||
|
||||
#include "src/actions/multi_match.h"
|
||||
|
||||
|
||||
#define IF_MATCH(a) \
|
||||
@@ -97,6 +98,9 @@ Action *Action::instantiate(const std::string& name) {
|
||||
if (name == "nolog") {
|
||||
return new NoLog(name);
|
||||
}
|
||||
if (utils::string::tolower(name) == "multimatch") {
|
||||
return new MultiMatch(utils::string::tolower(name));
|
||||
}
|
||||
return new Action(name);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user