mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-18 10:20:35 +03:00
Cosmetics: Using VariableValues instead of std::vector<...>
Making the code more readable.
This commit is contained in:
@@ -39,7 +39,7 @@ class Session_DictElement : public Variable {
|
||||
m_dictElement("SESSION:" + dictElement) { }
|
||||
|
||||
void evaluate(Transaction *t,
|
||||
std::vector<std::shared_ptr<const VariableValue>> *l) override {
|
||||
VariableValues *l) override {
|
||||
t->m_collections.m_session_collection->resolveMultiMatches(
|
||||
*getVariableKey(), t->m_collections.m_session_collection_key,
|
||||
t->m_rules->m_secWebAppId.m_value, l, m_keyExclusion);
|
||||
@@ -55,7 +55,7 @@ class Session_NoDictElement : public Variable {
|
||||
: Variable("SESSION") { }
|
||||
|
||||
void evaluate(Transaction *t,
|
||||
std::vector<std::shared_ptr<const VariableValue>> *l) override {
|
||||
VariableValues *l) override {
|
||||
t->m_collections.m_session_collection->resolveMultiMatches("",
|
||||
t->m_collections.m_session_collection_key,
|
||||
t->m_rules->m_secWebAppId.m_value, l, m_keyExclusion);
|
||||
@@ -70,7 +70,7 @@ class Session_DictElementRegexp : public VariableRegex {
|
||||
m_dictElement(dictElement) { }
|
||||
|
||||
void evaluate(Transaction *t,
|
||||
std::vector<std::shared_ptr<const VariableValue>> *l) override {
|
||||
VariableValues *l) override {
|
||||
t->m_collections.m_session_collection->resolveRegularExpression(
|
||||
m_dictElement, t->m_collections.m_session_collection_key,
|
||||
t->m_rules->m_secWebAppId.m_value, l, m_keyExclusion);
|
||||
@@ -90,7 +90,7 @@ class Session_DynamicElement : public VariableWithRunTimeString {
|
||||
{ }
|
||||
|
||||
void evaluate(Transaction *t,
|
||||
std::vector<std::shared_ptr<const VariableValue>> *l) override {
|
||||
VariableValues *l) override {
|
||||
std::string string = m_string->evaluate(t);
|
||||
t->m_collections.m_session_collection->resolveMultiMatches(
|
||||
string,
|
||||
|
||||
Reference in New Issue
Block a user