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:
@@ -34,7 +34,10 @@ class IpMatch : public Operator {
|
||||
IpMatch(const std::string &n, std::unique_ptr<RunTimeString> param)
|
||||
: Operator(n, std::move(param)) { }
|
||||
|
||||
bool evaluate(Transaction *transaction, const std::string &input) override;
|
||||
bool evaluate(Transaction *transaction,
|
||||
RuleWithActions *rule,
|
||||
const bpstd::string_view &input,
|
||||
RuleMessage *ruleMessage) override;
|
||||
|
||||
bool init(const std::string &file, std::string *error) override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user