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