mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-18 02:10:36 +03:00
Makes operator to use string_view
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user