mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2026-01-01 14:15:46 +03:00
Having RunTimeString in a better shape
This is an effort towards better understanding the issues reported on #2376
This commit is contained in:
committed by
Felipe Zimmerle
parent
d3ba2318d6
commit
bff82cd80d
@@ -122,7 +122,7 @@ bool Operator::evaluate(Transaction *transaction,
|
||||
Operator *Operator::instantiate(std::string op, std::string param_str) {
|
||||
std::string op_ = utils::string::tolower(op);
|
||||
std::unique_ptr<RunTimeString> param(new RunTimeString());
|
||||
param->appendText(param_str);
|
||||
param->append(param_str);
|
||||
|
||||
IF_MATCH(beginswith) { return new BeginsWith(std::move(param)); }
|
||||
IF_MATCH(contains) { return new Contains(std::move(param)); }
|
||||
|
||||
Reference in New Issue
Block a user