mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-18 18:30:35 +03:00
Cosmetics: Using VariableValues instead of std::vector<...>
Making the code more readable.
This commit is contained in:
@@ -40,7 +40,7 @@ class User_DictElement : public Variable {
|
||||
m_dictElement("USER:" + dictElement) { }
|
||||
|
||||
void evaluate(Transaction *t,
|
||||
std::vector<std::shared_ptr<const VariableValue>> *l) override {
|
||||
VariableValues *l) override {
|
||||
t->m_collections.m_user_collection->resolveMultiMatches(
|
||||
*getVariableKey(), t->m_collections.m_user_collection_key,
|
||||
t->m_rules->m_secWebAppId.m_value, l, m_keyExclusion);
|
||||
@@ -56,7 +56,7 @@ class User_NoDictElement : public Variable {
|
||||
: Variable("USER") { }
|
||||
|
||||
void evaluate(Transaction *t,
|
||||
std::vector<std::shared_ptr<const VariableValue>> *l) override {
|
||||
VariableValues *l) override {
|
||||
t->m_collections.m_user_collection->resolveMultiMatches(*getVariableKey(),
|
||||
t->m_collections.m_user_collection_key,
|
||||
t->m_rules->m_secWebAppId.m_value, l, m_keyExclusion);
|
||||
@@ -71,7 +71,7 @@ class User_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_user_collection->resolveRegularExpression(
|
||||
m_dictElement, t->m_collections.m_user_collection_key,
|
||||
t->m_rules->m_secWebAppId.m_value, l, m_keyExclusion);
|
||||
@@ -91,7 +91,7 @@ class User_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_user_collection->resolveMultiMatches(
|
||||
string,
|
||||
|
||||
Reference in New Issue
Block a user