mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 19:47:47 +03:00
Actions refactoring: now there is a clear definiation on the action name
This commit is contained in:
@@ -29,12 +29,14 @@ namespace actions {
|
||||
|
||||
class Accuracy : public Action {
|
||||
public:
|
||||
explicit Accuracy(std::string action);
|
||||
explicit Accuracy(std::string action)
|
||||
: Action(action, ConfigurationKind),
|
||||
m_accuracy(0) { }
|
||||
|
||||
bool evaluate(Rule *rule, Transaction *transaction) override;
|
||||
bool init(std::string *error) override;
|
||||
|
||||
private:
|
||||
std::string m_accuracy_str;
|
||||
int m_accuracy;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user