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_VALIDATE_HASH_H_
|
||||
|
||||
#include <string>
|
||||
#include <memory>
|
||||
#include <utility>
|
||||
|
||||
#include "src/operators/operator.h"
|
||||
|
||||
@@ -27,10 +29,8 @@ namespace operators {
|
||||
class ValidateHash : public Operator {
|
||||
public:
|
||||
/** @ingroup ModSecurity_Operator */
|
||||
ValidateHash(std::string o, std::string p, bool n)
|
||||
: Operator(o, p, n) { }
|
||||
explicit ValidateHash(std::string param)
|
||||
: Operator("ValidateHash", param) { }
|
||||
explicit ValidateHash(std::unique_ptr<RunTimeString> param)
|
||||
: Operator("ValidateHash", std::move(param)) { }
|
||||
bool evaluate(Transaction *transaction, const std::string &str) override;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user