mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 11:44:32 +03:00
Avoids call `toupper' twice while resolving a variable
This commit is contained in:
@@ -242,8 +242,6 @@ std::string MacroExpansion::expand(const std::string& input,
|
|||||||
std::string col = std::string(variable, 0, collection);
|
std::string col = std::string(variable, 0, collection);
|
||||||
std::string var = std::string(variable, collection + 1,
|
std::string var = std::string(variable, collection + 1,
|
||||||
variable.length() - (collection + 1));
|
variable.length() - (collection + 1));
|
||||||
col = utils::string::toupper(col);
|
|
||||||
|
|
||||||
if (col == "ARGS") {
|
if (col == "ARGS") {
|
||||||
variableValue = transaction->m_variableArgs.resolveFirst(var);
|
variableValue = transaction->m_variableArgs.resolveFirst(var);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user