mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Fixed removing cained rules with ctl action.
This commit is contained in:
2
CHANGES
2
CHANGES
@@ -1,6 +1,8 @@
|
|||||||
24 Jan 2008 - 2.5.0-rc2
|
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 SecUploadFileMode to allow setting the mode for uploaded files.
|
||||||
|
|
||||||
* Implemented "block" action.
|
* 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. */
|
/* Go to the next rule if this one has been removed. */
|
||||||
if (do_process == 0) {
|
if (do_process == 0) {
|
||||||
if (msr->txcfg->debuglog_level >= 5) {
|
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;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user