Fixed removing cained rules with ctl action.

This commit is contained in:
brectanus 2008-01-24 22:39:13 +00:00
parent ef6f75f4f7
commit 946a350043
2 changed files with 12 additions and 1 deletions

View File

@ -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.

View File

@ -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;
}
}