mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 03:34:29 +03:00
Cosmetics: Fix typo. Remove not Remote
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user