Adds support to the operator @within

This commit is contained in:
Felipe Zimmerle
2015-08-10 15:39:03 -03:00
parent 218eab6417
commit b883888c03
2 changed files with 21 additions and 13 deletions

View File

@@ -27,8 +27,10 @@ namespace operators {
class Within : public Operator {
public:
/** @ingroup ModSecurity_Operator */
Within(std::string o, std::string p, bool i);
bool evaluate(Assay *assay);
Within(std::string op, std::string param, bool negation)
: Operator(op, param, negation) { }
bool evaluate(Assay *assay, const std::string &str);
};
} // namespace operators