mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-01 03:57:47 +03:00
Adds references to the collection variables
This commit is contained in:
committed by
Felipe Zimmerle
parent
e95efa05cc
commit
d851699529
@@ -505,6 +505,12 @@ std::vector<std::unique_ptr<collection::Variable>> Rule::getFinalVars(
|
||||
new std::string(*v->m_value)));
|
||||
var->m_dynamic_value = true;
|
||||
var->m_dynamic_key = true;
|
||||
for (auto &i : v->m_orign) {
|
||||
std::unique_ptr<VariableOrigin> origin(new VariableOrigin());
|
||||
origin->m_offset = i->m_offset;
|
||||
origin->m_length = i->m_length;
|
||||
var->m_orign.push_back(std::move(origin));
|
||||
}
|
||||
|
||||
if (v->m_dynamic) {
|
||||
delete v;
|
||||
|
Reference in New Issue
Block a user