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