Skip to content

Commit 4d7fd5c

Browse files
author
Felipe Zimmerle
committed
Adds support for update target by message
1 parent 7d7c0c0 commit 4d7fd5c

File tree

11 files changed

+5122
-4947
lines changed

11 files changed

+5122
-4947
lines changed

CHANGES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
v3.0.????? - ?
33
---------------------------
44

5+
- Adds support for update target by message.
6+
[Issue #1474 - @zimmerle, @victorhora]
57
- Adds support to SecRuleScript directive.
68
[Issue #994 - @zimmerle]
79
- Adds support for the exec action.

Makefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,4 +289,5 @@ TESTS+=test/test-cases/regression/collection-resource.json
289289
TESTS+=test/test-cases/regression/operator-inpectFile.json
290290
TESTS+=test/test-cases/regression/action-exec.json
291291
TESTS+=test/test-cases/regression/directive-sec_rule_script.json
292+
TESTS+=test/test-cases/regression/config-update-target-by-msg.json
292293

headers/modsecurity/rules_exceptions.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ class RulesExceptions {
5252

5353
bool loadRemoveRuleByMsg(const std::string &msg, std::string *error);
5454

55+
bool loadUpdateTargetByMsg(const std::string &msg,
56+
std::unique_ptr<std::vector<std::unique_ptr<Variables::Variable> > > var,
57+
std::string *error);
58+
5559
bool loadUpdateTargetByTag(const std::string &tag,
5660
std::unique_ptr<std::vector<std::unique_ptr<Variables::Variable> > > var,
5761
std::string *error);
@@ -61,6 +65,7 @@ class RulesExceptions {
6165
std::string *error);
6266

6367
std::unordered_multimap<std::shared_ptr<std::string>, std::unique_ptr<Variables::Variable>> m_variable_update_target_by_tag;
68+
std::unordered_multimap<std::shared_ptr<std::string>, std::unique_ptr<Variables::Variable>> m_variable_update_target_by_msg;
6469
std::unordered_multimap<double, std::unique_ptr<Variables::Variable>> m_variable_update_target_by_id;
6570
std::list<std::string> m_remove_rule_by_msg;
6671

0 commit comments

Comments
 (0)