mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 19:47:47 +03:00
Cosmetics: Fix 0x0bdda1 indentation issues
This commit is contained in:
22
apache2/re.c
22
apache2/re.c
@@ -1889,10 +1889,15 @@ static apr_status_t msre_ruleset_process_phase_(msre_ruleset *ruleset, modsec_re
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (rc < 0) {
|
else if (rc < 0) {
|
||||||
const char *id = "", *msg = "";
|
const char *id = "";
|
||||||
|
const char *msg = "";
|
||||||
if (rule->actionset) {
|
if (rule->actionset) {
|
||||||
if (rule->actionset->id) id = rule->actionset->id;
|
if (rule->actionset->id) {
|
||||||
if (rule->actionset->msg) msg = rule->actionset->msg;
|
id = rule->actionset->id;
|
||||||
|
}
|
||||||
|
if (rule->actionset->msg) {
|
||||||
|
msg = rule->actionset->msg;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
msr_log(msr, 1, "Rule processing failed (id=%s, msg=%s).", id, msg);
|
msr_log(msr, 1, "Rule processing failed (id=%s, msg=%s).", id, msg);
|
||||||
|
|
||||||
@@ -1924,10 +1929,15 @@ static apr_status_t msre_ruleset_process_phase_(msre_ruleset *ruleset, modsec_re
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
const char *id = "", *msg = "";
|
const char *id = "";
|
||||||
|
const char *msg = "";
|
||||||
if (rule->actionset) {
|
if (rule->actionset) {
|
||||||
if (rule->actionset->id) id = rule->actionset->id;
|
if (rule->actionset->id) {
|
||||||
if (rule->actionset->msg) msg = rule->actionset->msg;
|
id = rule->actionset->id;
|
||||||
|
}
|
||||||
|
if (rule->actionset->msg) {
|
||||||
|
msg = rule->actionset->msg;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
msr_log(msr, 1, "Rule processing failed with unknown return code: %d (id=%s, msg=%s).", rc, id, msg);
|
msr_log(msr, 1, "Rule processing failed with unknown return code: %d (id=%s, msg=%s).", rc, id, msg);
|
||||||
apr_table_clear(msr->matched_vars);
|
apr_table_clear(msr->matched_vars);
|
||||||
|
Reference in New Issue
Block a user