mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-01 12:07:46 +03:00
Using run time string on the operators
This commit is contained in:
@@ -17,6 +17,8 @@
|
||||
#define SRC_OPERATORS_IP_MATCH_H_
|
||||
|
||||
#include <string>
|
||||
#include <memory>
|
||||
#include <utility>
|
||||
|
||||
#include "src/operators/operator.h"
|
||||
#include "src/utils/ip_tree.h"
|
||||
@@ -27,12 +29,11 @@ namespace operators {
|
||||
class IpMatch : public Operator {
|
||||
public:
|
||||
/** @ingroup ModSecurity_Operator */
|
||||
IpMatch(std::string op, std::string param, bool negation)
|
||||
: Operator(op, param, negation) { }
|
||||
IpMatch(std::string op, std::string param)
|
||||
: Operator(op, param) { }
|
||||
explicit IpMatch(std::string param)
|
||||
: Operator("IpMatch", param) { }
|
||||
explicit IpMatch(std::unique_ptr<RunTimeString> param)
|
||||
: Operator("IpMatch", std::move(param)) { }
|
||||
IpMatch(std::string n, std::unique_ptr<RunTimeString> param)
|
||||
: Operator(n, std::move(param)) { }
|
||||
|
||||
bool evaluate(Transaction *transaction, const std::string &input) override;
|
||||
|
||||
bool init(const std::string &file, std::string *error) override;
|
||||
|
Reference in New Issue
Block a user