mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
Adds a new constructor to Action it now receives kind as parameter
The property kind is mandatory to be specified by actions who extends the class Action. The new constructor make simpler the implementation of new actions.
This commit is contained in:
parent
616a2ae6de
commit
71eb27bbe9
@ -34,6 +34,9 @@ class Action {
|
||||
explicit Action(std::string _action)
|
||||
: action_kind(2),
|
||||
action(_action) { }
|
||||
explicit Action(std::string _action, int kind)
|
||||
: action_kind(kind),
|
||||
action(_action) { }
|
||||
|
||||
/**
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user