Adds initial support to the multiMatch action

This commit is contained in:
Felipe Zimmerle
2016-11-28 09:55:48 -03:00
parent 9116a19bcc
commit 8fa0523fe0
4 changed files with 85 additions and 1 deletions

View File

@@ -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);
}