Adds support to the @endsWith operator

This commit is contained in:
Felipe Zimmerle
2015-08-11 13:41:24 -03:00
parent 577736abb1
commit 209a3db47f
3 changed files with 14 additions and 28 deletions

View File

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