mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 11:44:32 +03:00
Adds initial support to chained rules
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
|
||||
#include "modsecurity/assay.h"
|
||||
#include "actions/block.h"
|
||||
#include "actions/chain.h"
|
||||
#include "actions/redirect.h"
|
||||
#include "actions/status.h"
|
||||
#include "actions/rule_id.h"
|
||||
@@ -27,6 +28,7 @@
|
||||
#include "actions/severity.h"
|
||||
|
||||
|
||||
|
||||
#define IF_MATCH(a) \
|
||||
if (op.compare(1, std::strlen(#a), #a) == 0)
|
||||
|
||||
@@ -79,7 +81,9 @@ Action *Action::instantiate(std::string name) {
|
||||
if (name.compare(0, severity.length(), severity) == 0) {
|
||||
return new Severity(name);
|
||||
}
|
||||
|
||||
if (name == "chain") {
|
||||
return new Chain(name);
|
||||
}
|
||||
return new Action(name);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user