mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-12-31 13:49:11 +03:00
Using run time string on the operators
This commit is contained in:
@@ -16,6 +16,8 @@
|
||||
#define SRC_OPERATORS_IP_MATCH_FROM_FILE_H_
|
||||
|
||||
#include <string>
|
||||
#include <memory>
|
||||
#include <utility>
|
||||
|
||||
#include "src/operators/ip_match.h"
|
||||
|
||||
@@ -25,13 +27,10 @@ namespace operators {
|
||||
class IpMatchFromFile : public IpMatch {
|
||||
public:
|
||||
/** @ingroup ModSecurity_Operator */
|
||||
IpMatchFromFile(std::string op, std::string param, bool negation)
|
||||
: IpMatch(op, param, negation) { }
|
||||
IpMatchFromFile(std::string op, std::string param)
|
||||
: IpMatch(op, param) { }
|
||||
explicit IpMatchFromFile(std::string param)
|
||||
: IpMatch("IpMatchFromFile", param) { }
|
||||
|
||||
explicit IpMatchFromFile(std::unique_ptr<RunTimeString> param)
|
||||
: IpMatch("IpMatchFromFile", std::move(param)) { }
|
||||
IpMatchFromFile(std::string n, std::unique_ptr<RunTimeString> param)
|
||||
: IpMatch(n, std::move(param)) { }
|
||||
bool init(const std::string& file, std::string *error) override;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user