mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-20 19:16:40 +03:00
Introduces ActionWithExecution
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
#include "modsecurity/transaction.h"
|
||||
|
||||
#include "src/actions/disruptive/disruptive_action.h"
|
||||
#include "src/actions/action_with_execution.h"
|
||||
|
||||
|
||||
#ifndef SRC_ACTIONS_DISRUPTIVE_DENY_H_
|
||||
@@ -31,13 +32,13 @@ namespace actions {
|
||||
namespace disruptive {
|
||||
|
||||
|
||||
class Deny : public ActionDisruptive {
|
||||
class Deny : public ActionDisruptive, public ActionWithExecution {
|
||||
public:
|
||||
Deny()
|
||||
: Action("deny")
|
||||
{ }
|
||||
|
||||
bool execute(Transaction *transaction) noexcept override;
|
||||
bool execute(Transaction *transaction) const noexcept override;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user