mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-18 02:10:36 +03:00
Avoids copy on the transformation operation
This commit is contained in:
@@ -38,8 +38,9 @@ TrimLeft::TrimLeft(const std::string &action)
|
||||
this->action_kind = 1;
|
||||
}
|
||||
|
||||
std::string TrimLeft::evaluate(std::string value,
|
||||
std::string TrimLeft::evaluate(const std::string &val,
|
||||
Transaction *transaction) {
|
||||
std::string value(val);
|
||||
return *ltrim(&value);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user