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:
@@ -20,6 +20,7 @@
|
||||
#include <vector>
|
||||
#include <cstring>
|
||||
#include <memory>
|
||||
#include <utility>
|
||||
|
||||
#include "src/operators/operator.h"
|
||||
|
||||
@@ -30,12 +31,8 @@ namespace operators {
|
||||
class ValidateByteRange : public Operator {
|
||||
public:
|
||||
/** @ingroup ModSecurity_Operator */
|
||||
ValidateByteRange(std::string op, std::string param, bool negation)
|
||||
: Operator(op, param, negation) {
|
||||
std::memset(table, '\0', sizeof(char) * 32);
|
||||
}
|
||||
explicit ValidateByteRange(std::string param)
|
||||
: Operator("ValidadeByteRange", param) {
|
||||
explicit ValidateByteRange(std::unique_ptr<RunTimeString> param)
|
||||
: Operator("ValidadeByteRange", std::move(param)) {
|
||||
std::memset(table, '\0', sizeof(char) * 32);
|
||||
}
|
||||
~ValidateByteRange() override { }
|
||||
|
Reference in New Issue
Block a user