mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 11:44:32 +03:00
Fix disruptive actions execution
This commit is contained in:
@@ -23,12 +23,14 @@
|
||||
|
||||
#include "actions/block.h"
|
||||
#include "actions/chain.h"
|
||||
#include "actions/deny.h"
|
||||
#include "actions/redirect.h"
|
||||
#include "actions/status.h"
|
||||
#include "actions/rule_id.h"
|
||||
#include "actions/phase.h"
|
||||
#include "actions/severity.h"
|
||||
#include "actions/capture.h"
|
||||
#include "actions/pass.h"
|
||||
|
||||
|
||||
|
||||
@@ -82,6 +84,12 @@ Action *Action::instantiate(const std::string& name) {
|
||||
if (name == "capture") {
|
||||
return new Capture(name);
|
||||
}
|
||||
if (name == "pass") {
|
||||
return new Pass(name);
|
||||
}
|
||||
if (name == "deny") {
|
||||
return new Deny(name);
|
||||
}
|
||||
return new Action(name);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user