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:
@@ -20,9 +20,12 @@
|
||||
namespace modsecurity {
|
||||
namespace operators {
|
||||
|
||||
bool StrEq::evaluate(Transaction *transaction, const std::string &str) {
|
||||
bool StrEq::evaluate(Transaction *transaction,
|
||||
RuleWithActions *rule,
|
||||
const bpstd::string_view &str,
|
||||
RuleMessage *ruleMessage) {
|
||||
std::string pt(m_string->evaluate(transaction));
|
||||
return !pt.compare(str);
|
||||
return !pt.compare(str.to_string());
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user