mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 19:47:47 +03:00
Renames collection::Variable to VariableValue
This commit is contained in:
@@ -17,8 +17,9 @@
|
||||
#include <memory>
|
||||
|
||||
#include "src/run_time_string.h"
|
||||
|
||||
#include "modsecurity/variable_value.h"
|
||||
#include "modsecurity/transaction.h"
|
||||
#include "modsecurity/collection/variable.h"
|
||||
#include "src/variables/rule.h"
|
||||
#include "src/variables/tx.h"
|
||||
#include "src/variables/highest_severity.h"
|
||||
@@ -51,7 +52,7 @@ std::string RunTimeString::evaluate(Transaction *t) {
|
||||
if (z->m_string.size() > 0) {
|
||||
s.append(z->m_string);
|
||||
} else if (z->m_var != NULL && t != NULL) {
|
||||
std::vector<const collection::Variable *> l;
|
||||
std::vector<const VariableValue *> l;
|
||||
z->m_var->evaluate(t, NULL, &l);
|
||||
if (l.size() > 0) {
|
||||
s.append(l[0]->m_value);
|
||||
|
Reference in New Issue
Block a user