From f807697e3d0e4e93f22f883f4fbcfb66fc50061c Mon Sep 17 00:00:00 2001 From: ivanr Date: Thu, 22 Feb 2007 10:44:01 +0000 Subject: [PATCH] SecRuleRemoveById was unable to remove a phase 4 rule. --- CHANGES | 16 +++------------- apache2/re.c | 2 +- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/CHANGES b/CHANGES index 7f7e3e1f..31b1886f 100644 --- a/CHANGES +++ b/CHANGES @@ -1,14 +1,12 @@ -05 Feb 2006 - 2.1.0-rc7 +22 Feb 2006 - 2.1.0-rc7+ ------------------------ +* SecRuleRemoveById was unable to remove a rule placed in phase 4. Fixed. + * Fixed a problem with incorrectly setting requestBodyProcessor using the ctl action. - -24 Jan 2007 - 2.1.0-rc6 ------------------------ - * Bundled Core Rules 2.1-1.3.2b4. * Updates to the reference manual. @@ -18,16 +16,8 @@ * Added a few helpful debug messages in the XML validation area. - -05 Jan 2007 - 2.1.0-rc5 ------------------------ - * Updates to the reference manual. - -29 Dec 2006 - 2.1.0-rc4 ------------------------ - * Fixed the validateByteRange operator. * Default value for the status action is now 403 (as it was supposed to diff --git a/apache2/re.c b/apache2/re.c index 8e6a1bd7..dd2afb5f 100644 --- a/apache2/re.c +++ b/apache2/re.c @@ -920,7 +920,7 @@ int msre_ruleset_rule_remove_with_exception(msre_ruleset *ruleset, rule_exceptio count += msre_ruleset_phase_rule_remove_with_exception(ruleset, re, ruleset->phase_request_headers); count += msre_ruleset_phase_rule_remove_with_exception(ruleset, re, ruleset->phase_request_body); count += msre_ruleset_phase_rule_remove_with_exception(ruleset, re, ruleset->phase_response_headers); - count += msre_ruleset_phase_rule_remove_with_exception(ruleset, re, ruleset->phase_request_body); + count += msre_ruleset_phase_rule_remove_with_exception(ruleset, re, ruleset->phase_response_body); return count; }