mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 11:44:32 +03:00
Collections cleanup: removes resolveFirstCopy method
This commit is contained in:
@@ -110,14 +110,14 @@ bool SetVar::evaluate(Rule *rule, Transaction *transm_parser_payload) {
|
||||
}
|
||||
|
||||
try {
|
||||
std::string resolvedValue =
|
||||
transm_parser_payload->m_collections.resolveFirstCopy(
|
||||
std::string *resolvedValue =
|
||||
transm_parser_payload->m_collections.resolveFirst(
|
||||
m_collectionName,
|
||||
m_variableNameExpanded);
|
||||
if (resolvedValue.empty()) {
|
||||
if (resolvedValue == NULL || resolvedValue->empty()) {
|
||||
value = 0;
|
||||
} else {
|
||||
value = stoi(resolvedValue);
|
||||
value = stoi(*resolvedValue);
|
||||
}
|
||||
} catch (...) {
|
||||
value = 0;
|
||||
|
Reference in New Issue
Block a user