mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-20 02:57:12 +03:00
Introduces ActionWithExecution
This commit is contained in:
@@ -20,6 +20,8 @@
|
||||
|
||||
#include "modsecurity/actions/action.h"
|
||||
#include "src/actions/action_with_run_time_string.h"
|
||||
#include "src/actions/action_with_execution.h"
|
||||
|
||||
|
||||
#ifndef SRC_ACTIONS_SET_UID_H_
|
||||
#define SRC_ACTIONS_SET_UID_H_
|
||||
@@ -31,7 +33,7 @@ class Transaction;
|
||||
namespace actions {
|
||||
|
||||
|
||||
class SetUID : public ActionWithRunTimeString {
|
||||
class SetUID : public ActionWithRunTimeString, public ActionWithExecution {
|
||||
public:
|
||||
explicit SetUID(std::unique_ptr<RunTimeString> runTimeString)
|
||||
: ActionWithRunTimeString(std::move(runTimeString)),
|
||||
@@ -43,7 +45,7 @@ class SetUID : public ActionWithRunTimeString {
|
||||
Action(action)
|
||||
{ };
|
||||
|
||||
bool execute(Transaction *transaction) noexcept override;
|
||||
bool execute(Transaction *transaction) const noexcept override;
|
||||
|
||||
ActionWithRunTimeString *clone() override {
|
||||
return new SetUID(*this);
|
||||
|
||||
Reference in New Issue
Block a user