mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-13 21:36:00 +03:00
Fixed removing cained rules with ctl action.
This commit is contained in:
parent
ef6f75f4f7
commit
946a350043
2
CHANGES
2
CHANGES
@ -1,6 +1,8 @@
|
||||
24 Jan 2008 - 2.5.0-rc2
|
||||
-----------------------
|
||||
|
||||
* Fixed removal of chained rules via ctl:ruleRemoveById.
|
||||
|
||||
* Implemented SecUploadFileMode to allow setting the mode for uploaded files.
|
||||
|
||||
* Implemented "block" action.
|
||||
|
11
apache2/re.c
11
apache2/re.c
@ -932,8 +932,17 @@ apr_status_t msre_ruleset_process_phase(msre_ruleset *ruleset, modsec_rec *msr)
|
||||
/* Go to the next rule if this one has been removed. */
|
||||
if (do_process == 0) {
|
||||
if (msr->txcfg->debuglog_level >= 5) {
|
||||
msr_log(msr, 5, "Not processing rule id=\"%s\": removed by ctl action", rule->actionset->id);
|
||||
msr_log(msr, 5, "Not processing %srule id=\"%s\": "
|
||||
"removed by ctl action",
|
||||
rule->actionset->is_chained ? "chained " : "",
|
||||
rule->actionset->id);
|
||||
}
|
||||
|
||||
/* Skip the whole chain, if this is a chained rule */
|
||||
if (rule->actionset->is_chained) {
|
||||
mode = NEXT_CHAIN;
|
||||
}
|
||||
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user