mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-01 03:57:47 +03:00
Cosmetics: assorted fixes on the coding style
This commit is contained in:
committed by
Felipe Zimmerle
parent
a88dc8efa9
commit
c1f11ab4e5
@@ -326,7 +326,8 @@ std::list<std::pair<std::unique_ptr<std::string>,
|
||||
for (Action *a : trasn->m_rules->m_defaultActions[this->phase]) {
|
||||
if (a->action_kind \
|
||||
== actions::Action::RunTimeBeforeMatchAttemptKind) {
|
||||
newValue = std::unique_ptr<std::string>(new std::string(a->evaluate(*value, trasn)));
|
||||
newValue = std::unique_ptr<std::string>(
|
||||
new std::string(a->evaluate(*value, trasn)));
|
||||
|
||||
if (multiMatch == true) {
|
||||
if (*newValue != *value) {
|
||||
@@ -354,7 +355,8 @@ std::list<std::pair<std::unique_ptr<std::string>,
|
||||
|
||||
for (Action *a : this->m_actionsRuntimePre) {
|
||||
if (none == 0) {
|
||||
newValue = std::unique_ptr<std::string>(new std::string(a->evaluate(*value, trasn)));
|
||||
newValue = std::unique_ptr<std::string>(
|
||||
new std::string(a->evaluate(*value, trasn)));
|
||||
|
||||
if (multiMatch == true) {
|
||||
if (*value != *newValue) {
|
||||
@@ -388,9 +390,6 @@ std::list<std::pair<std::unique_ptr<std::string>,
|
||||
trasn->debug(9, "multiMatch is enabled. " \
|
||||
+ std::to_string(ret.size()) + \
|
||||
" values to be tested.");
|
||||
//for (const std::string *a : ret) {
|
||||
// trasn->debug(9, " - " + *a);
|
||||
//}
|
||||
} else {
|
||||
ret.push_back(std::make_pair(
|
||||
std::move(value),
|
||||
|
Reference in New Issue
Block a user