Adds "negation" property to the operators signature

This commit is contained in:
Felipe Zimmerle
2015-07-27 15:56:38 -03:00
parent 2f3a8f0880
commit f41f9e1f0d
2 changed files with 7 additions and 11 deletions

View File

@@ -64,9 +64,6 @@
namespace ModSecurity {
namespace operators {
Operator::Operator() {
}
bool Operator::debug(Assay *assay, int x, std::string a) {
assay->debug(x, a);
@@ -74,12 +71,6 @@ bool Operator::debug(Assay *assay, int x, std::string a) {
}
Operator::Operator(std::string op, std::string param, bool negation) {
this->op = op;
this->param = param;
}
bool Operator::evaluate(Assay *assay) {
if (assay) {
assay->debug(2, "Operator: " + this->op + \