mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-01 03:57:47 +03:00
Adds sanity check to the rule id action
This commit is contained in:
@@ -32,10 +32,14 @@ namespace actions {
|
||||
|
||||
class RuleId : public Action {
|
||||
public:
|
||||
explicit RuleId(std::string action);
|
||||
explicit RuleId(std::string action)
|
||||
: Action(action, ConfigurationKind) { }
|
||||
|
||||
bool init(std::string *error) override;
|
||||
bool evaluate(Rule *rule, Assay *assay) override;
|
||||
double rule_id;
|
||||
|
||||
private:
|
||||
double m_ruleId;
|
||||
};
|
||||
|
||||
} // namespace actions
|
||||
|
Reference in New Issue
Block a user