Adds support to the beginsWith operator

This commit is contained in:
Felipe Zimmerle
2015-08-11 13:50:37 -03:00
parent 209a3db47f
commit 9a7506f9e9
2 changed files with 17 additions and 15 deletions

View File

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