Makes operator to use string_view

This commit is contained in:
Felipe Zimmerle
2019-03-05 12:26:44 -03:00
parent f5cdf03de1
commit af23c720ae
85 changed files with 1954 additions and 298 deletions

View File

@@ -22,10 +22,13 @@
namespace modsecurity {
namespace operators {
bool Lt::evaluate(Transaction *transaction, const std::string &input) {
bool Lt::evaluate(Transaction *transaction,
RuleWithActions *rule,
const bpstd::string_view &str,
RuleMessage *ruleMessage) {
std::string p(m_string->evaluate(transaction));
bool lt = atoll(input.c_str()) < atoll(p.c_str());
bool lt = atoll(str.c_str()) < atoll(p.c_str());
return lt;
}