mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-13 21:36:00 +03:00
Cosmetics: Fix typo. Remove not Remote
This commit is contained in:
parent
1c21d1aeba
commit
fead971558
@ -276,12 +276,12 @@ class Transaction {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
std::list< std::pair<std::string, std::string> > m_ruleRemoteTargetByTag;
|
||||
std::list< std::pair<std::string, std::string> > m_ruleRemoveTargetByTag;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
std::list< std::pair<int, std::string> > m_ruleRemoteTargetById;
|
||||
std::list< std::pair<int, std::string> > m_ruleRemoveTargetById;
|
||||
|
||||
/**
|
||||
* The list m_auditLogModifier contains modifications to the `auditlogs'
|
||||
|
@ -46,7 +46,7 @@ bool CtlRuleRemoveTargetById::init(std::string *error) {
|
||||
}
|
||||
|
||||
bool CtlRuleRemoveTargetById::evaluate(Rule *rule, Transaction *transaction) {
|
||||
transaction->m_ruleRemoteTargetById.push_back(
|
||||
transaction->m_ruleRemoveTargetById.push_back(
|
||||
std::make_pair(m_id, m_target));
|
||||
return true;
|
||||
}
|
||||
|
@ -39,7 +39,7 @@ bool CtlRuleRemoveTargetByTag::init(std::string *error) {
|
||||
}
|
||||
|
||||
bool CtlRuleRemoveTargetByTag::evaluate(Rule *rule, Transaction *transaction) {
|
||||
transaction->m_ruleRemoteTargetByTag.push_back(
|
||||
transaction->m_ruleRemoveTargetByTag.push_back(
|
||||
std::make_pair(m_tag, m_target));
|
||||
return true;
|
||||
}
|
||||
|
@ -350,7 +350,7 @@ bool Rule::evaluate(Transaction *trasn) {
|
||||
continue;
|
||||
}
|
||||
|
||||
for (auto &i : trasn->m_ruleRemoteTargetByTag) {
|
||||
for (auto &i : trasn->m_ruleRemoveTargetByTag) {
|
||||
std::string tag = i.first;
|
||||
std::string args = i.second;
|
||||
if (containsTag(tag, trasn) == false) {
|
||||
@ -366,7 +366,7 @@ bool Rule::evaluate(Transaction *trasn) {
|
||||
if (ignoreVariable) {
|
||||
continue;
|
||||
}
|
||||
for (auto &i : trasn->m_ruleRemoteTargetById) {
|
||||
for (auto &i : trasn->m_ruleRemoveTargetById) {
|
||||
int id = i.first;
|
||||
std::string args = i.second;
|
||||
if (rule_id != id) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user