We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72b46c5 commit c9f2f35Copy full SHA for c9f2f35
2 files changed
headers/modsecurity/rules_exceptions.h
@@ -51,7 +51,7 @@ class RulesExceptions {
51
bool addRange(int a, int b);
52
bool addNumber(int a);
53
bool contains(int a);
54
- bool merge(RulesExceptions *from);
+ bool merge(const RulesExceptions *from);
55
56
bool loadRemoveRuleByMsg(const std::string &msg, const std::string *error);
57
bool loadRemoveRuleByTag(const std::string &msg, const std::string *error);
src/rules_exceptions.cc
@@ -205,7 +205,7 @@ bool RulesExceptions::contains(int a) {
205
}
206
207
208
-bool RulesExceptions::merge(RulesExceptions *from) {
+bool RulesExceptions::merge(const RulesExceptions *from) {
209
for (int a : from->m_numbers) {
210
bool ret = addNumber(a);
211
if (ret == false) {
0 commit comments