mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-01 03:57:47 +03:00
Adds "negation" property to the operators signature
This commit is contained in:
@@ -29,11 +29,16 @@ namespace operators {
|
||||
class Operator {
|
||||
public:
|
||||
/** @ingroup ModSecurity_Operator */
|
||||
Operator();
|
||||
Operator(std::string po, std::string param, bool invert);
|
||||
Operator() { }
|
||||
Operator(std::string op, std::string param, bool negation)
|
||||
: op(op),
|
||||
param(param),
|
||||
negation(negation) { }
|
||||
|
||||
|
||||
std::string op;
|
||||
std::string param;
|
||||
bool negation;
|
||||
|
||||
virtual bool evaluate(Assay *assay);
|
||||
virtual bool evaluate(Assay *assay, const std::string &str);
|
||||
|
Reference in New Issue
Block a user