Adds support to the @containsWord operator

This commit is contained in:
Felipe Zimmerle
2015-08-10 17:41:44 -03:00
parent 2f81b62d17
commit 64cbb15335
5 changed files with 53 additions and 33 deletions

View File

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